Skip to content

Commit f5da2fa

Browse files
committed
🧪 Annotate pytest settings
1 parent 85da763 commit f5da2fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pytest.ini

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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
5457
junit_duration_report = call
58+
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
5559
junit_family = xunit1
5660
junit_logging = all
5761
junit_log_passing_tests = true
5862
junit_suite_name = ansible_pygments_test_suite
5963

6064
minversion = 6.2.0
6165

66+
# Optimize pytest's lookup by restricting potentially deep dir tree scan:
6267
norecursedirs =
6368
build
6469
dist

0 commit comments

Comments
 (0)