-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add ability to set suite name in JUnit XML report #533
Copy link
Copy link
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributorplugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin pluginstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributorplugin: junitxmlrelated to the junitxml builtin pluginrelated to the junitxml builtin pluginstatus: help wanteddevelopers would like help from experts on this topicdevelopers would like help from experts on this topictype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Originally reported by: Simon Lundmark (BitBucket: simlun, GitHub: simlun)
Today as of the resolved issue #355 the XML report's root
<testsuite>tag'snameattribute is hard-coded topytest. To make reporting easier in larger projects with several test suites it is useful to set this attribute to something meaningful likeunit,integration,gui, etc. Other reporting tools that read and aggregate JUnit-style XML reports rely on this argument.I propose adding a
--junit-suitename strargument to the py.test command which would set this string.I'm happy to contribute to the project with this feature if the people in charge think it's a good idea.