Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 840 Bytes

SINGLE-TEST.md

File metadata and controls

17 lines (12 loc) · 840 Bytes

Specifying tests to run

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 the TEST_ONLY_PLUGINS environment variable (comma separated artifact ids).

JUnit

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.