public class Surefire1185DoNotSpawnTestsIT
extends SurefireJUnit4IntegrationTestCase
Surefire 2.19 spawns unnecessary tests in surefire-junit4 provider.
https://issues.apache.org/jira/browse/SUREFIRE-1185
Example, UnlistedTest is the problem here because it runs with filtered out methods:
Running pkg.UnlistedTest
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in pkg.UnlistedTest
Running pkg.RunningTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in pkg.RunningTest
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0