In the case of “PlayMode” test whether it’s “Run All” or “Run Selected”, it just execute the test sequentially. I know I can use [SetUp] and [TearDown] to try refreshing the state. But by default I think the best practice of TDD would be writing tests so that each one is complete on its own. Interdependent tests can cause cascading false negatives.
In our case the best way of ensuring this is already in our hand. We have a sandbox that is the play mode! Why aren’t we using this to our advantage? It would be 100% improvement if this is the case other than the time taken for exiting and entering play mode.
Maybe a check box that enables this. Or if there is a script that I can put in [SetUp] and [TearDown] that has the same effect as restarting the play mode I do want to know. Thank you.
