[Possible issue] TEST-junit-jupiter.xml replaced when using the rerunFailingTestsCount from maven-surefire-plugin #5138
Unanswered
eliasnogueira
asked this question in
Q&A
Replies: 1 comment
-
|
If so, how are you using that? Could you please share a reproducer project? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 problem
When the
<rerunFailingTestsCount>configuration from themaven-surefire-plugin. is in use, the following happens when I look at the contents ofTEST-junit-jupiter.xml:Why this is a problem
Even though I can see the individual
TEST-*.xmlfiles in thetarget/surefire-reportsand it shows the tests regardless its run status theTEST-junit-jupiter.xmlshows only the failed ones.In terms of reporting, it's bad as I can't see the successful ones.
My specific case
My case is that I enrich each
<testcase>entry in theTEST-junit-jupiter.xmlgenerated file by adding new<property>entries. So I'm missing all the successful executions.Experiment
It only happens when I use the
<rerunFailingTestsCount>configuration from themaven-surefire-plugin.When I develop a custom retry extension by implementing the
handleTestExecutionExceptionfromTestExecutionExceptionHandler, it works as expected, meaning I see all tests.Confirmation I want
It seems to be a "problem" with the
maven-surefire-plugin, but I would like any input/experience/etc. for anyone to understand whether it would be acceptable behaviour.I'm open to help with anything.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions