There are several profiles that might be handy for specifying tests to run:
-PrunSmokeTests
- only the essential tests to execute the most fundamental use cases.-PrunDockerTests
- only tests that require docker.-PskipCucumberTests
- skip tests implemented in Cucumber.-PtestOnlyPlugins
- only tests that require plugins specified in theTEST_ONLY_PLUGINS
environment variable (comma separated artifact ids).
To run a single JUnit test from the command line, specify the name of the test with the -Dtest=
option:
mvn -Dtest=AntPluginTest#autoInstallAnt test
It need not specify a fully qualified class name. See Maven surefire plugin for more details about how to specify a group of tests.