Sorry, if my comments are confusing. At this point, even I am confused!
Here's the situation:
- The tests are launched
- First test of the first class is executed
- The rest of the tests are skipped
- Control goes on to run the tests of the next class - but in between, the @AfterClass of the previous test class is not executed
So, as I see, there are two issues:
1. Why is only the first test of each test class is executed (i.e. the rest of the tests are skipped - not even attempted to be executed)
2. Why is @AfterClass method of each test class is not exevuted
Hope this helps....