Jump to content

User:Ajaypendyala/sandbox

From Wikipedia, the free encyclopedia

my def: A software test fixture sets up the system for the testing process by providing it with all the necessary code to initialize it, thereby satisfying whatever preconditions there maybe.

A test case is considered unsafe, when it modifies the fixtures during the setup phase. This is more pronounced in the setups other than the inline setup.[] An unsafe test case is a serious problem, one that could render subsequent tests useless by changing the state of fixture than expected. Also, the order of tests is important, it could determine if the fixture setups must rerun or not. If a safe test is run after an unsafe test, then the fixture setup is that common to both is rerun but the same is not true for vice versa[][1].

  1. ^ Pereira da Silva, Lucas (June 10, 2016). "Execution and code reuse between test classes". IEEE Computer Society.