You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add name property to testsuites element in generated JUnit XML #12736
Jest and Vitest JUnit Reporters do this, they include: jest tests and vitest tests as the value of the testsuites element's name property.
Describe the solution you'd like
The JUnit XML generated by pytest should always include pytest tests as the value of the name property of the testsuites element.
It's my opinion that this property should not be customizable., there should be some static information in the JUnit that represents the fact that pytest generated this file.
Alternative Solutions
There isn't any way to set or customize that property right now.
link this spec defines it as "the name of the entire test run"
link this spec defines it as "The label of the scan"
Further here's an example JUnit file from the Jenkins JUnit plugin that is used in their tests that makes use of the property, which means that it's supported by Jenkins: link
It doesn't seem well defined, however as i mentioned the jest and vitest reporters make the default of that property: "jest tests" and "vitest tests" but they allow it to be customizable.
This issue was closed because it has the status: needs information label and follow-up information has not been provided for 7 days since being marked as stale.
Activity
RonnyPfannschmidt commentedon Aug 23, 2024
Please reference a junitxml spec defining this attribute
joseph-sentry commentedon Aug 27, 2024
Here's what I found:
Further here's an example JUnit file from the Jenkins JUnit plugin that is used in their tests that makes use of the property, which means that it's supported by Jenkins: link
It doesn't seem well defined, however as i mentioned the jest and vitest reporters make the default of that property: "jest tests" and "vitest tests" but they allow it to be customizable.
github-actions commentedon Sep 11, 2024
This issue is stale because it has the
status: needs informationlabel and requested follow-up information was not provided for 14 days.github-actions commentedon Sep 18, 2024
This issue was closed because it has the
status: needs informationlabel and follow-up information has not been provided for 7 days since being marked as stale.nicoddemus commentedon Sep 18, 2024
Reopening as it was closed by the stalebot erroneously (more information was provided after all).
added name attribute to testsuites tag in junitxml, issue n. pytest-d…
Add `name` attribute to `testsuites` root tag in junitxml (#13404)
chore(deps): update dependency pytest to v9 (#305)