Skip to content
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

Tests/failures/errors/skipped attributes ignored #541

Open
geoffday67 opened this issue Oct 25, 2024 · 2 comments
Open

Tests/failures/errors/skipped attributes ignored #541

geoffday67 opened this issue Oct 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@geoffday67
Copy link

Describe the bug

Using the JUnit parser, the tests/failures/errors/skipped attributes on <testsuite> are ignored, instead the reported figures are decided by the number of <testcase> sub-elements. In my use case I don't want to add the passed tests to the XML, just the failed ones, but I would like to see the count of tests passed.

To Reproduce

This minimal XML report shows blanks in the Action output:

<testsuites>
  <testsuite name="Wrong data type" tests="1" failures="2" errors="3" skipped="4" time="5">
  </testsuite>
</testsuites>

Expected behavior

The Action report shows the specified counts from the <testsuite> element.

Screenshots

image

Additional context

The XML report is auto-generated by a utility which checks strings for validity and outputs JUnit-compatible format. There are about 2500 strings checked, I don't want to write 2500 <testcase> elements to the XML if possible. I have full access to the source for the utility so I can tweak the output format as needed.

Thanks for any feedback you can give!

@geoffday67 geoffday67 added the bug Something isn't working label Oct 25, 2024
@jozefizso
Copy link
Collaborator

You are welcome to create pull request with the fix.

@theilgaard
Copy link

There's already pull requests that fixes this, for failed at least.

#222

@j-catania j-catania removed their assignment Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants