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

Fix parsing of ESLint reports in jest-junit format #134

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

phjardas
Copy link
Contributor

@phjardas phjardas commented Aug 6, 2021

The ESLint junit formatter does not include a total time attribute for the root <testsuites> element.

This PR makes the parser a little bit more lenient to accept testsuites elements without any attributes at all.

@phjardas
Copy link
Contributor Author

@dorny Any chance to get this PR and #144 merged? Is there anything we could do? Thanks! 🙏🏻

@IanMoroney
Copy link
Contributor

@phjardas , @KholdStare, @tdabinskas, I ran into a similar issue as yourselves where there were features that I needed from this project and looked like it wasn't being updated any time soon, so I took the initiative to fork the project myself and build the enhancements into it with a colleague.
I have also now taken this PR and added the contents into that repo so you can use them :)

https://github.com/phoenix-actions/test-reporting/
https://github.com/marketplace/actions/test-reporting

@jozefizso jozefizso force-pushed the fix-jest-junit-missing-time branch 2 times, most recently from 066f6b1 to 9b4d5e8 Compare December 27, 2023 15:04
@j-catania
Copy link
Collaborator

@jozefizso, is it ok for you ?

@jozefizso jozefizso added the enhancement New feature or request label Jun 26, 2024
phjardas and others added 2 commits June 26, 2024 13:42
The [ESLint junit formatter](https://www.npmjs.com/package/eslint-junit)
does not include a total time attribute for the root `<testsuites>`
element.
@jozefizso jozefizso force-pushed the fix-jest-junit-missing-time branch from 9b4d5e8 to 7befe80 Compare June 26, 2024 11:47
@jozefizso jozefizso merged commit 95058ab into dorny:main Jun 26, 2024
2 checks passed
@jozefizso
Copy link
Collaborator

Hi @phjardas, thanks for this bug fix!

@jozefizso jozefizso added the bug Something isn't working label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants