-
Notifications
You must be signed in to change notification settings - Fork 127
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
Recursively check for errors/failures in produced JUnit result XMLs #446
Recursively check for errors/failures in produced JUnit result XMLs #446
Conversation
We need to check the interaction of this with |
I'm a bit conflicted about where to go from here. My first thought was that an unbounded recursive traversal was overkill to just descend 1 extra level deep. Then I was reading the documentation you linked and it mentions:
So it seems that a valid JUnit file need not include any I definitely agree that we should make a change here. If your goal is only to support Catch2's outputs, I think we should punt the recursive crawl and instead add an explicit check for skipping the |
Signed-off-by: Nick Morales <[email protected]>
a4daa37
to
9cc3498
Compare
…ending into 'testsuite' tags with error/failure attributes. Signed-off-by: Nick Morales <[email protected]>
@cottsay apologies for the delay on this. I like your suggestion to limit recursion and select a clear answer in cases of contradiction, since that optimizes but also (hopefully) gives us a little more flexibility than just Catch2 JUnit XMLs. I've implemented that in my latest commit. Let me know what you think. |
@cottsay bump on this, let me know if you have any thoughts on my lastest update. |
Sorry, this is my first time making a contribution to a ROS repository. Is there anything else that needs to be done on my end to close this out? |
No, it's on me to get this merged. CI passed, but I'd like to do some manual smoke testing to ensure that test failures continue to surface correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No regressions that I can see, thanks!
Any chance this could be backported to Iron and/or Humble? I've got a package that relies on a custom test runner (which is essentially just the change I committed here) as a workaround for this issue in those distros. |
@clalancette, how do you and/or the |
I think it would be OK to backport to both; it doesn't change API, and enables downstream users. |
I added a recursive check for errors/failures in JUnit result XMLs for the
ament_add_test()
runner to address the issue described here.Signed-off-by: Nick Morales [email protected]