-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always report the topLevel testcase in JUnit reporting backend #1310
Always report the topLevel testcase in JUnit reporting backend #1310
Conversation
I am not sure why a few of the targets fails, and running them on the same commit in my fork, I haven't been able to reproduce the failures: https://github.com/achamayou/Catch2/pull/2 I am guessing they are transient, and will go away if the build is restarted, which seems to be something that only the repo owners can do? |
Always report the topLevel testcase in JUnit backend
Codecov Report
@@ Coverage Diff @@
## master #1310 +/- ##
==========================================
+ Coverage 78.87% 82.56% +3.69%
==========================================
Files 113 102 -11
Lines 3299 4307 +1008
==========================================
+ Hits 2602 3556 +954
- Misses 697 751 +54 |
Reconciled against latest master changes. Feedback would be lovely. |
First, in regards to the build failure, Travis has started having transient failures lately, where the build image errors out while getting the required packages. Anyway, if I understand the problem correctly, I think this is the wrong way to go about fixing it. Instead, the JUnit reporter should be given all of the finished assertions the way it used to before changes that caused #1264 and #1267. I will be committing a change to address this soon, can you instead see if that works for you? |
@horenmar thank you for taking a look. I thought the state of things was deliberate, and meant to minimise report size. I wasn't aware that it was an unintended side effect of a recent change, which is why I'd made this change to only report top level testcases on success. If we can have full details on success instead, I'm certainly very happy with that. I will test your change and confirm that it addresses the issue (but it sounds like it will). |
@horenmar I have tested the latest revision of master, including your change, and it does report passing tests in junit format in such a way that they are reported accurately in Jenkins. Thank you! If it was possible to have a release including this change not too far from now, it would be very convenient. If I can help with that in any way, please let me know how. |
v2.3.0 is out now. |
Thank you! |
Description
This pull request changes the JUnit report to always report topLevel testcase entries in a testsuite (as opposed to the nested ones that are created to represent sections etc), regardless of wether they are empty/passing or not.
There are two reasons for this change:
GitHub Issues
N/A, but happy to open one if it helps.