It says in the documentation that the verify phase in the build lifecycle
run any checks on results of integration tests to ensure quality criteria are met
What does this exactly mean?
It says in the documentation that the verify phase in the build lifecycle
run any checks on results of integration tests to ensure quality criteria are met
What does this exactly mean?
The verify
phase will indeed verify the integration tests results, if one or more results have failed or not.
Usually the maven-failsafe-plugin is used to orchestrate the lifecycle of the integration tests, it has two goals:
In the case of the verify goal, as per documentation:
Binds by default to the lifecycle phase: verify.
In the usage section of the documentation you can check some more discussion around the verify for each testing provider it is available
For this particular piece of configuration, the verify will check if some of summary files have any failures:
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
<configuration>
<summaryFiles>
<summaryFile>target/failsafe-reports/failsafe-summary-red-bevels.xml</summaryFile>
<summaryFile>target/failsafe-reports/failsafe-summary-no-bevels.xml</summaryFile>
</summaryFiles>
</configuration>
</execution>
Edit 1
Some interesting article can be found in here around the maven configuration for this.
Veirfy can also be used by Sonarqube
mvn clean verify sonar:sonar -Dsonar.projectKey=JWatch -Dsonar.projectName='JWatch' -Dsonar.host.url=http://localhost:9000 -Dsonar.token=mytoken
© 2022 - 2024 — McMap. All rights reserved.