Configure the junit_family option explicitly in pytest.ini

This commit is contained in:
Michael Mintz 2019-11-29 00:50:44 -05:00
parent 6f765fb0b8
commit 7452015525
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,9 @@ addopts = --capture=no --ignore conftest.py -p no:cacheprovider
# Ignore warnings such as DeprecationWarning and pytest.PytestUnknownMarkWarning
filterwarnings = ignore::pytest.PytestWarning
# Configure the junit_family option explicitly:
junit_family = legacy
# Set pytest discovery rules:
# (Most of the rules here are similar to the default rules.)
# (unittest.TestCase rules override the rules here for classes and functions.)

View File

@ -55,6 +55,7 @@ def main():
data.append("addopts = --capture=no --ignore conftest.py "
"-p no:cacheprovider")
data.append("filterwarnings = ignore::pytest.PytestWarning")
data.append("junit_family = legacy")
data.append("python_files = test_*.py *_test.py *_tests.py *_suite.py")
data.append("python_classes = Test* *Test* *Test *Tests *Suite")
data.append("python_functions = test_*")