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

Missing attributes for JUnit XML #192

Open
gileri opened this issue Jun 26, 2023 · 1 comment
Open

Missing attributes for JUnit XML #192

gileri opened this issue Jun 26, 2023 · 1 comment

Comments

@gileri
Copy link

gileri commented Jun 26, 2023

Hi, thank you for this reporter !

When giving the Junit output to the xUnit Jenkins plugin, it fails with the following error :

WARNING: The file 'junit.xml' is an invalid file.
WARNING: At line 3 of file:junit.xml:cvc-complex-type.4: Attribute 'errors' must appear on element 'testsuite'.
WARNING: At line 3 of file:junit.xml:cvc-complex-type.4: Attribute 'errors' must appear on element 'testsuite'.
WARNING: At line 5 of file:junit.xml:cvc-complex-type.4: Attribute 'errors' must appear on element 'testsuite'.
WARNING: At line 5 of file:junit.xml:cvc-complex-type.4: Attribute 'errors' must appear on element 'testsuite'.
WARNING: The result file 'junit.xml' for the metric 'JUnit' is not valid. The result file has been skipped.

It seems that there is a mismatch between the XSD in mocha-junit-reporter, and the one used by the plugin.

@aedmondson
Copy link

While it's not a fix, I've gotten around this by setting antMode=true in reporterOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants