failsafe:verify

Full name:

org.apache.maven.plugins:maven-failsafe-plugin:2.5:verify

Description:

Verify integration tests ran using Surefire.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: verify.

Required Parameters

Name Type Since Description
summaryFile File - The summary file to write integration test results to.
testClassesDirectory File - The directory containing generated test classes of the project being tested. This will be included at the beginning the test classpath.
Default value is: ${project.build.testOutputDirectory}.

Optional Parameters

Name Type Since Description
basedir File - The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").
encoding String - The character encoding scheme to be applied.
Default value is: ${project.reporting.outputEncoding}.
failIfNoTests Boolean 2.4 Set this to "true" to cause a failure if there are no tests to run.
reportsDirectory File - Base directory where all reports are written to.
skip boolean - Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.
skipExec boolean 2.3 Deprecated. Use -DskipTests instead.
skipITs boolean 2.4.3-alpha-2 Set this to 'true' to skip running integration tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
skipTests boolean 2.4 Set this to 'true' to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
testFailureIgnore boolean - Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.

Parameter Details

basedir:

The base directory of the project being tested. This can be obtained in your unit test by System.getProperty("basedir").
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}

encoding:

The character encoding scheme to be applied.
  • Type: java.lang.String
  • Required: No
  • Expression: ${encoding}
  • Default: ${project.reporting.outputEncoding}

failIfNoTests:

Set this to "true" to cause a failure if there are no tests to run.
  • Type: java.lang.Boolean
  • Since: 2.4
  • Required: No
  • Expression: ${failIfNoTests}

reportsDirectory:

Base directory where all reports are written to.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/failsafe-reports

skip:

Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, especially if you enable it using the "maven.test.skip" property, because maven.test.skip disables both running the tests and compiling the tests. Consider using the skipTests parameter instead.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.skip}

skipExec:

Deprecated. Use -DskipTests instead.
This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec.
  • Type: boolean
  • Since: 2.3
  • Required: No
  • Expression: ${maven.test.skip.exec}

skipITs:

Set this to 'true' to skip running integration tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Since: 2.4.3-alpha-2
  • Required: No
  • Expression: ${skipITs}

skipTests:

Set this to 'true' to skip running tests, but still compile them. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Since: 2.4
  • Required: No
  • Expression: ${skipTests}

summaryFile:

The summary file to write integration test results to.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/failsafe-reports/failsafe-summary.xml

testClassesDirectory:

The directory containing generated test classes of the project being tested. This will be included at the beginning the test classpath.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.testOutputDirectory}

testFailureIgnore:

Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
  • Type: boolean
  • Required: No
  • Expression: ${maven.test.failure.ignore}