I have some code that needs to run before and after my tests classes. It does not matter how many test classes are running in the middle, it has to run once and only once for the entire collection.
When I run in a suite, it is called at the start and end of the entire suite, this is working as expected, however, I want to be able to run a single test class. In this case, the test class needs to detect that it is running alone and start the pre/post test code.
Is this possible?