Do not run a category of slow JUnit tests by default in Maven and every IDE (Eclipse, IntelliJ, …) without an explicit TestSuite
问题 I have a set of really slow tests, which take a week to run. (They literally run some code non-stop for about a week). Naturally, no developer (or even the default build job) wants to run these tests. Only a specific, separate build job has the time to run them. So these tests needs to be disabled by default . JUnit's categories seemed perfect for this: I annotated those slow tests with @Category(SlowTests.class) . Problem is that they are still run because: I don't want to maintain TestSuite