Re:It's not what programming languages do, it's what they sh...
by taeric on Friday March 27, 2020 @11:53PM
(#22709088)
You 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.
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.