My project: testng-surefire-maven. In one of the modules I runt mvn clean install. When all tests are green, I have a result: Tests run: 277, Failures: 0, Errors: 0, Skipped: 0
Then I in turn make an intentional mistake in one of 3 tests that I am refactoring right now. And as a result I have 3 totally different outputs: Test1>AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance:149 » BeanCreation Tests run: 344, Failures: 1, Errors: 0, Skipped: 100
Test2>AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance:149 » BeanCreation Tests run: 282, Failures: 1, Errors: 0, Skipped: 8 Test3>AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance:149 » BeanCreation Tests run: 416, Failures: 1, Errors: 0, Skipped: 205
How is that possible??? All I've done is a one-line change in one of the test classes in turn. I didn't touch testng.xml nor pom.xml.
Additionally, if I make a mistake in all 3 of them simultaneously, only one will pop up. I didn't set a custom skipAfterFailureCount in surefire nor any other testng property. Why doesn't it run though all of them and show me the list of all failing tests at once? All tests are in the same package.