apache / apache/maven-surefire
[SUREFIRE-2197] skipAfterFailureCount not honoured with multiple executions
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Arman Sharif](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=armandino)** opened **[SUREFIRE-2197](https://issues.apache.org/jira/browse/SUREFIRE-2197?redirect=false)** and commented
I have a pom with 2 executions of the failsafe plugin which is configured as described here:
https://maven.apache.org/surefire/maven-failsafe-plugin/usage.html#running-integration-tests-multiple-times
I would like the build to fail and _not_ run the second `` if the first one has a test failure. It seems the plugin does not honour the `skipAfterFailureCount` in this case.
**Expected behaviour:**
Build fails after the first test failure
**Actual:**
Build continues to execute
**Minimal sample project:**
https://github.com/armandino/maven-failsafe-plugin-bug-report
---
**Affects:** 3.1.2
Contributor guide
Research direction
Start with the Maven Failsafe configuration in the linked minimal sample project and compare its two plugin executions with the documented multiple-executions setup. Trace how skipAfterFailureCount is handled after the first execution, then verify that a failing first execution prevents the second from running and that the build fails as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100