failsafe:verify
Full name:
org.apache.maven.plugins:maven-failsafe-plugin:3.6.0:verify
Description:
Verify integration tests ran using Failsafe.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
verify.
Required Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<summaryFile> |
File |
- |
The summary file to read integration test results from. Default: ${project.build.directory}/failsafe-reports/failsafe-summary.xml |
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"). Default: ${basedir} |
<failIfNoTests> |
boolean |
2.4 |
Set this to "true" to cause a failure if there are no tests to run. Defaults to "false". Default: falseUser Property: failIfNoTests |
<failOnFlakeCount> |
int |
3.0.0-M6 |
Set this to a value greater than 0 to fail the whole test set if the cumulative number of flakes reaches this threshold. Set to 0 to allow an unlimited number of flakes. Default: 0User Property: failsafe.failOnFlakeCount |
<reportsDirectory> |
File |
- |
Base directory where all reports are written to. Default: ${project.build.directory}/failsafe-reports |
<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. Default: falseUser Property: maven.test.skip |
<skipExec> |
boolean |
2.3 |
Deprecated. use -DskipTests instead This old parameter is just like skipTests, but bound to the old property maven.test.skip.exec. User Property: maven.test.skip.exec |
<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. User Property: skipITs |
<skipTests> |
boolean |
2.4 |
Deprecated. use skipITs insteadSet this to 'true' to skip verifying integration test results. Unlike Surefire's |
<summaryFiles> |
File[] |
2.6 |
Additional summary files to read integration test results from. |
<testClassesDirectory> |
File |
- |
The directory containing generated test classes of the project being tested. This will be included at the beginning the test classpath. Default: ${project.build.testOutputDirectory} |
<testFailureIgnore> |
boolean |
- |
Set this to true to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion. Default: falseUser Property: maven.test.failure.ignore |
Parameter Details
<basedir>
- Type:
java.io.File - Required:
No - Default:
${basedir}
<failIfNoTests>
- Type:
boolean - Since:
2.4 - Required:
No - User Property:
failIfNoTests - Default:
false
<failOnFlakeCount>
- Type:
int - Since:
3.0.0-M6 - Required:
No - User Property:
failsafe.failOnFlakeCount - Default:
0
<reportsDirectory>
- Type:
java.io.File - Required:
No - Default:
${project.build.directory}/failsafe-reports
<skip>
- Type:
boolean - Required:
No - User Property:
maven.test.skip - Default:
false
<skipExec>
use -DskipTests instead
- Type:
boolean - Since:
2.3 - Required:
No - User Property:
maven.test.skip.exec
<skipITs>
- Type:
boolean - Since:
2.4.3-alpha-2 - Required:
No - User Property:
skipITs
<skipTests>
use
skipITs insteadUnlike Surefire's skipTests, this Failsafe parameter is not bound to the skipTests user property. Use -DskipITs on the command line to skip integration tests (including this verification step), or -Dmaven.test.skip to skip everything. The <skipTests> element is still honored when set explicitly in the plugin <configuration>.
- Type:
boolean - Since:
2.4 - Required:
No
<summaryFile>
- Type:
java.io.File - Required:
Yes - Default:
${project.build.directory}/failsafe-reports/failsafe-summary.xml
<summaryFiles>
- Type:
java.io.File[] - Since:
2.6 - Required:
No
<testClassesDirectory>
- Type:
java.io.File - Required:
No - Default:
${project.build.testOutputDirectory}
<testFailureIgnore>
- Type:
boolean - Required:
No - User Property:
maven.test.failure.ignore - Default:
false
