[Pytest-commit] Issue #533: Add ability to set suite name in JUnit XML report (hpk42/pytest)

Simon Lundmark issues-reply at bitbucket.org
Thu Jun 26 10:59:10 CEST 2014


New issue 533: Add ability to set suite name in JUnit XML report
https://bitbucket.org/hpk42/pytest/issue/533/add-ability-to-set-suite-name-in-junit-xml

Simon Lundmark:

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.




More information about the pytest-commit mailing list