Using JUnit 4.8 and the new @Category
annotations, is there a way to choose a subset of categories to run with Maven\'s Surefire plugin?
For example I h
You can use
mvn test -Dgroups="com.myapp.FastTests, com.myapp.SlowTests"
But ensure that you configure properly the maven surefire plugin
org.apache.maven.plugins
maven-surefire-plugin
2.11
org.apache.maven.surefire
surefire-junit47
2.12.2
See docs in: https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html