Skip to content

Commit 14769ff

Browse files
committed
🎨 Annotate bits of pytest config
In particular, this patch adds a link to the doctest documentation page and describes the `norecursedirs` optimization.
1 parent 553ce5f commit 14769ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ addopts =
2020
--showlocals
2121

2222
# Autocollect and invoke the doctests from all modules:
23+
# https://docs.pytest.org/en/stable/doctest.html
2324
--doctest-modules
2425

2526
# Dump the test results in junit format:
@@ -37,6 +38,7 @@ junit_duration_report = call
3738
junit_family = xunit2
3839
junit_suite_name = magicbus_test_suite
3940
minversion = 4.6.9
41+
# Optimize pytest's lookup by restricting potentially deep dir tree scan:
4042
norecursedirs =
4143
build
4244
magicbus.egg-info

0 commit comments

Comments
 (0)