apache / apache/maven-surefire

[SUREFIRE-1653] Maven sure fire report skip count issue

Open
#2,106 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[atul hake](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=atul14)** opened **[SUREFIRE-1653](https://issues.apache.org/jira/browse/SUREFIRE-1653?redirect=false)** and commented

I am re running failed TC using IRetryAnalyzer.
If i have 3 TC . 1st pass 2nd fail..retried.again fail.
so run count is 3 , pass=1,fail =1 , skip =1. Its correct.
now i want to remove skip count from report so i have written code at OnFinish method [see attachmen] to remove skip count...so individual Test- .xml [Target/junitreport] does not contain any skip count.
but final Test-Testsuit.xml [target] contains skip count . which is obstacle.
Have look at video : https://www.screencast.com/t/JXOx5Qko

what is the way to remove skip count from final Test-Testsuit.xml ?
is it any version issue?
[i want to remove skip count because it disturbing success percentage of report

---

**Affects:** 3.0.0-M3

**Attachments:**
- [pom.xml](https://issues.apache.org/jira/secure/attachment/12963558/pom.xml) (_6.11 kB_)
- [TestListenerAdapter](https://issues.apache.org/jira/secure/attachment/12963559/TestListenerAdapter) (_2.17 kB_)

Contributor guide

Open the contributing guide

Research direction

Start with the attached pom.xml and TestListenerAdapter to reproduce the retry scenario and inspect how the final Test-Testsuit.xml is produced. Compare the individual XML reports with the final suite report, then verify that the final report handles the retry's skipped count as intended for Surefire 3.0.0-M3.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.