It's a nice practice to clean after your tests. It's good for various reasons like disk space, "pure" execution environment and others.
However if you clean up to eagerly it'll make your debugging much harder. The data just won't be there to see what went wrong.
The solution we found is pretty simple:
- Try to place all your test output in one location
- Nuke this location when starting the tests
This way all the information is available after an error, and you don't accumulate too much junk (just one test run junk at a time).
No comments:
Post a Comment