File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,20 @@ addopts =
99 # Report all the things == -rxXs:
1010 -ra
1111
12- # Show local variables in tracebacks
12+ # Show values of the local vars in errors/ tracebacks:
1313 --showlocals
1414
1515 # Autocollect and invoke the doctests from all modules:
1616 # https://docs.pytest.org/en/stable/doctest.html
1717 --doctest-modules
1818
19+ # dump the test results in junit format:
1920 --junitxml =.test-results/pytest/results.xml
2021
21- # `pytest-cov`:
22+ # Pre-load the `pytest-cov` plugin early :
2223 -p pytest_cov
24+
25+ # `pytest-cov`:
2326 --no-cov-on-fail
2427 --cov
2528 --cov-branch
@@ -52,13 +55,15 @@ filterwarnings =
5255
5356# https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files
5457junit_duration_report = call
58+ # xunit1 contains more metadata than xunit2 so it's better for CI UIs:
5559junit_family = xunit1
5660junit_logging = all
5761junit_log_passing_tests = true
5862junit_suite_name = ansible_pygments_test_suite
5963
6064minversion = 6.2.0
6165
66+ # Optimize pytest's lookup by restricting potentially deep dir tree scan:
6267norecursedirs =
6368 build
6469 dist
You can’t perform that action at this time.
0 commit comments