apache / apache/maven-surefire
[SUREFIRE-1835] failsafe plugin's verify goal does not honor `mvn --fail-at-end`
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Jonas Berlin](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nitor-jonasb)** opened **[SUREFIRE-1835](https://issues.apache.org/jira/browse/SUREFIRE-1835?redirect=false)** and commented
If I run `mvn --fail-at-end verify` on a multi-module project with the following configuration in several modules
``
` maven-failsafe-plugin`
` 3.0.0-M4`
` `
` `
` `
` integration-test`
` verify`
` `
` `
` `
` `
` `
` ${integration.test.glob}`
` `
` `
``
## Expected behaviour:
Due to the `--fail-at-end{color`} flag, tests of all modules are run regardless of failures and after that the maven build fails in case of failures.
## Actual behaviour:
The "verify" goal halts the build at the first module with a problem. If I add \true\ in the \ section, it **does** run tests of all modules, but then the maven build exits with success regardless of failures.
---
**Affects:** 2.20.1, 3.0.0-M4
**Issue Links:**
- [MNG-7351](https://issues.apache.org/jira/browse/MNG-7351) Improve javadoc for MojoExecutionException and MojoFailureException
Contributor guide
Research direction
Start by reproducing `mvn --fail-at-end verify` in a multi-module project using the shown maven-failsafe-plugin `integration-test` and `verify` configuration. Compare the verify goal's behavior with and without `testFailureIgnore`; done means all modules run and the build still fails at the end when integration tests fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100