[Possible issue] TEST-junit-jupiter.xml replaced when using the rerunFailingTestsCount from maven-surefire-plugin #5138
-
|
Hi all! 👋🏼 I'm facing a problem (won't say it's a bug because I don't know if it's by design) and need your help figuring out whether it's by design or a bug. The problemWhen the
Why this is a problemEven though I can see the individual In terms of reporting, it's bad as I can't see the successful ones. My specific caseMy case is that I enrich each ExperimentIt only happens when I use the Confirmation I wantIt seems to be a "problem" with the I'm open to help with anything. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
If so, how are you using that? Could you please share a reproducer project? |
Beta Was this translation helpful? Give feedback.
-
|
@marcphilipp I apologize for the delay in my response. Here's the project I created to reproduce it: https://github.com/eliasnogueira/junit-xml-report-tryout Thank you for the help! |
Beta Was this translation helpful? Give feedback.
For JUnit the "correct" behaviour is that the reports JUnit generates overwrite each other as they are created by two distinct executions. Only Surefire knows that it is rerunning tests, so only Surefire can create the correct the report. In other words, for correct reports you have to use Surefire's XML reporting support, not JUnits.