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

Add ability to set suite name in JUnit XML report #533

Closed
pytestbot opened this issue Jun 26, 2014 · 4 comments
Closed

Add ability to set suite name in JUnit XML report #533

pytestbot opened this issue Jun 26, 2014 · 4 comments
Labels
good first issue easy issue that is friendly to new contributor plugin: junitxml related to the junitxml builtin plugin status: help wanted developers would like help from experts on this topic type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Simon Lundmark (BitBucket: simlun, GitHub: simlun)


Today as of the resolved issue #355 the XML report's root <testsuite> tag's name attribute is hard-coded to pytest. To make reporting easier in larger projects with several test suites it is useful to set this attribute to something meaningful like unit, integration, gui, etc. Other reporting tools that read and aggregate JUnit-style XML reports rely on this argument.

I propose adding a --junit-suitename str argument 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.


@pytestbot
Copy link
Contributor Author

Original comment by Simon Lundmark (BitBucket: simlun, GitHub: simlun):


What do you say @hpk42 ? Is this feature likely to be included in pytest if the code were to be written? Or is it better to build this as some kind of plugin?

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


Sorry for failing to get back -- yes, i think this is a useful feature. See http://pytest.org/latest/contributing.html for more info how to proceed.

@pytestbot
Copy link
Contributor Author

Original comment by Simon Lundmark (BitBucket: simlun, GitHub: simlun):


No worries, thanks for your (now very quick 😃) reply! I will read up on contributing!

@pytestbot pytestbot added the type: enhancement new feature or API change, should be merged into features branch label Jun 15, 2015
@RonnyPfannschmidt RonnyPfannschmidt added good first issue easy issue that is friendly to new contributor status: help wanted developers would like help from experts on this topic labels Jan 18, 2017
@nicoddemus nicoddemus added plugin: junitxml related to the junitxml builtin plugin and removed plugin: junitxml related to the junitxml builtin plugin labels Feb 2, 2017
This was referenced Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue easy issue that is friendly to new contributor plugin: junitxml related to the junitxml builtin plugin status: help wanted developers would like help from experts on this topic type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

3 participants