jekwatt / pytest_playground

In which I play around with pytest.
0 stars 1 forks source link

Fix PytestDeprecationWarning for junitxml #13

Closed jekwatt closed 4 years ago

jekwatt commented 4 years ago

Q: I was getting PytestDeprecationWarning when I tried:

pytest --junitxml="resuts.xml"

A: Newer versions of Pytest have begun requiring that we include the new junit version in pytest.ini

[pytest]
junit_family=xunit2

If this causes problems, you can use the legacy setting:

[pytest]
junit_family=legacy
jekwatt commented 4 years ago

Issue resolved via #16.