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.
maven.test.skip: skip compile of test code and 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)
By default, these files are generated at ${basedir}/target/surefire-reports.

For an HTML format of the report, please see the Maven Surefire Report Plugin.

Goals Overview

The Surefire Plugin has only 1 goal:

Usage

Instructions on how to use the Surefire Plugin can be found on the usage page.