You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
If unit tests fail, this often means you will change code in response, and re-run the tests. Stateless tests speed this up a lot --- no re-cloning, re-building, etc.; Running the test again is like starting over anew.
Forces you to think harder before/while you implement. You will see problems like this in production code for sure, so why not train yourself on writing tests beforehand?
Cons of requiring cleanup
It's not always obvious that unit tests have side effects, and what these will be.
Cleaning things up correctly is complex, and probably requires lots of duplicate code across tests.
A middle ground could be to somehow mark tests that require a re-build after they have run. Then at least it's clear that problems may arise.