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

pytest JUnit XML deprecation warning (before pytest 6.0) #10673

Closed
kimadeline opened this issue Mar 20, 2020 · 1 comment
Closed

pytest JUnit XML deprecation warning (before pytest 6.0) #10673

kimadeline opened this issue Mar 20, 2020 · 1 comment
Labels
area-testing feature-request Request for new features or functionality important Issue identified as high-priority

Comments

@kimadeline
Copy link

Initially reported in #10658:

Running tests with pytests shows the PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.

We add the --junitxml=<path/to/a/temp/xml/file> argument to our pytest command, so we should handle this warning instead of the users.

@kimadeline kimadeline added feature-request Request for new features or functionality area-testing triage-needed Needs assignment to the proper sub-team labels Mar 20, 2020
@karthiknadig karthiknadig added needs spike Label for issues that need investigation before they can be worked on. important Issue identified as high-priority and removed triage-needed Needs assignment to the proper sub-team labels Mar 23, 2020
@bschnurr
Copy link
Member

bschnurr commented Apr 7, 2020

try adding this to your commandline
-o junit_family=xunit1

@luabud luabud closed this as completed Jun 10, 2020
@ghost ghost removed the needs spike Label for issues that need investigation before they can be worked on. label Jun 10, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing feature-request Request for new features or functionality important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

4 participants