Skip to content

Commit

Permalink
Configure the junit_family option explicitly in pytest.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Nov 29, 2019
1 parent 6f765fb commit 7452015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest.ini
Expand Up @@ -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.)
Expand Down
1 change: 1 addition & 0 deletions seleniumbase/console_scripts/sb_mkdir.py
Expand Up @@ -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_*")
Expand Down

0 comments on commit 7452015

Please sign in to comment.