There are several profile 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 implementing in Cucumber.-PtestOnlyPlugins
- only tests that require plugins specified inTEST_ONLY_PLUGINS
environment variable (comma separated artifact ids).
To run a single JUnit test from 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.