3 ms·
Not only that, you also can't trust that the test results will apply to any situation where the user doesn't restart the program after every action—i.e., to nor
by nybble41 7y ago
Not only that, you also can't trust that the test results will apply to any situation where the user doesn't restart the program after every action—i.e., to normal operation.
Don't restart the program between tests. Randomize the order of the test cases between runs. Try running the same test multiple times on occasion.
- taeric 7y agoYou shouldn't have your tests artificially limit the life cycle of parts. Either for artificial reuse or artificial termination. To that end, if you have variables that live as long as your program, or longer, have your tests reflect that.