Programming/Maven
Surefire Plugin
Jared
2009. 3. 24. 13:27
Use -DskipTests to skip tests instead of -Dmaven.test.skip or -Dmaven.test.skip.exec.
The Surefire Plugin is used during the test phase of the build lifecucle to execute the unit tests of an application. It generates reports in 2 different file formats:
For an HTML format of the report, please see the Maven Surefire Report Plugin.
maven.test.skip: skip compile of test code and execution
maven.test.skip.exec: compile and skip execution
maven.test.skip.exec: compile and skip execution
The Surefire Plugin is used during the test phase of the build lifecucle to execute the unit tests of an application. It generates reports in 2 different file formats:
- Plain text files (*.txt)
- XML files (*.xml)
For an HTML format of the report, please see the Maven Surefire Report Plugin.
Goals Overview
The Surefire Plugin has only 1 goal:
- surefire:test runs the unit tests of an application.
Usage
Instructions on how to use the Surefire Plugin can be found on the usage page.
Examples
The following examples show how to use the Surefire Plugin in more advanced use-cases: