GeezerVison is showing github.com — Add name property to testsuites element in generated JUnit XML · Issue #12736 · pytest-dev/pytest
Add name property to testsuites element in generated JUnit XML #12736DescriptionWhat's the problem this feature will solve?
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. ActivityRonnyPfannschmidt commented on Aug 23, 2024 Please reference a junitxml spec defining this attribute joseph-sentry commented on Aug 27, 2024 ContributorAuthor More actions Here's what I found:
- link this spec doesn't even include the field
- 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. github-actions commented on Sep 11, 2024 This issue is stale because it has the status: needs information label and requested follow-up information was not provided for 14 days. github-actions commented on Sep 18, 2024 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. nicoddemus commented on Sep 18, 2024 Reopening as it was closed by the stalebot erroneously (more information was provided after all). added a commit that references this issue on May 2, 2025This issue will close once commit 7746f4f is merged into the 'main' branch.7746f4f
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|