I’m currently trying to write some JUnit tests for parts of Project Aura and it is irritating me. JUnit is based around the concept that tests should be atomic and capable of being run in any order. I like the idea of avoiding side effects so your have conceptually purer tests, but there are times that tests are conceptually linked.
What I’m doing right now is instantiating a simple version of a datastore designed to be deployed on a grid. This creates dozens of files and takes a few seconds. Not that the overhead is a huge problem for this one test, but over the course of time it could start to matter.