Debian Codegraph @

pytest.ini

raw
1 [pytest]
2 addopts =
3 # `pytest-xdist`:
4 # --numprocesses=auto
5 # NOTE: the plugin disabled because it's slower with so few tests
6 # --numprocesses=0
7
8 # Show 10 slowest invocations:
9 --durations=10
10
11 # Report all the things == -rxXs:
12 -ra
13
14 # Show values of the local vars in errors/tracebacks:
15 --showlocals
16
17 # Autocollect and invoke the doctests from all modules:
18 # https://docs.pytest.org/en/stable/doctest.html
19 --doctest-modules
20
21 # Pre-load the `pytest-cov` plugin early:
22 -p pytest_cov
23
24 # `pytest-cov`:
25 --cov
26 --cov-config=.coveragerc
27 --cov-context=test
28 --no-cov-on-fail
29
30 # Fail on config parsing warnings:
31 # --strict-config
32
33 # Fail on non-existing markers:
34 # * Deprecated since v6.2.0 but may be reintroduced later covering a
35 # broader scope:
36 # --strict
37 # * Exists since v4.5.0 (advised to be used instead of `--strict`):
38 --strict-markers
39
40 asyncio_mode = auto
41 asyncio_default_fixture_loop_scope = function
42
43 doctest_optionflags = ALLOW_UNICODE ELLIPSIS
44
45 # Marks tests with an empty parameterset as xfail(run=False)
46 empty_parameter_set_mark = xfail
47
48 faulthandler_timeout = 30
49
50 filterwarnings =
51 error
52
53 # https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files
54 junit_duration_report = call
55 # xunit1 contains more metadata than xunit2 so it's better for CI UIs:
56 junit_family = xunit1
57 junit_logging = all
58 junit_log_passing_tests = true
59 junit_suite_name = aiosignal_test_suite
60
61 # A mapping of markers to their descriptions allowed in strict mode:
62 markers =
63
64 minversion = 6.1.0
65
66 # Optimize pytest's lookup by restricting potentially deep dir tree scan:
67 norecursedirs =
68 build
69 dependencies
70 dist
71 docs
72 .*
73 *.egg
74 *.egg-info
75 */*.egg-info
76 */**/*.egg-info
77 *.dist-info
78 */*.dist-info
79 */**/*.dist-info
80
81 testpaths = tests/
82
83 xfail_strict = true