| 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 |
|
| 29 |
# Fail on config parsing warnings: |
| 30 |
# --strict-config |
| 31 |
|
| 32 |
# Fail on non-existing markers: |
| 33 |
# * Deprecated since v6.2.0 but may be reintroduced later covering a |
| 34 |
# broader scope: |
| 35 |
# --strict |
| 36 |
# * Exists since v4.5.0 (advised to be used instead of `--strict`): |
| 37 |
--strict-markers |
| 38 |
|
| 39 |
doctest_optionflags = ALLOW_UNICODE ELLIPSIS |
| 40 |
|
| 41 |
# Marks tests with an empty parameterset as xfail(run=False) |
| 42 |
empty_parameter_set_mark = xfail |
| 43 |
|
| 44 |
faulthandler_timeout = 30 |
| 45 |
|
| 46 |
filterwarnings = |
| 47 |
error |
| 48 |
|
| 49 |
# https://github.com/pytest-dev/pytest/issues/10977 and https://github.com/pytest-dev/pytest/pull/10894 |
| 50 |
ignore:ast\.(Num|NameConstant|Str) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning:_pytest |
| 51 |
ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning:_pytest |
| 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 = frozenlist_test_suite |
| 60 |
|
| 61 |
# A mapping of markers to their descriptions allowed in strict mode: |
| 62 |
markers = |
| 63 |
|
| 64 |
minversion = 3.8.2 |
| 65 |
|
| 66 |
# Optimize pytest's lookup by restricting potentially deep dir tree scan: |
| 67 |
norecursedirs = |
| 68 |
build |
| 69 |
dist |
| 70 |
docs |
| 71 |
requirements |
| 72 |
venv |
| 73 |
virtualenv |
| 74 |
frozenlist.egg-info |
| 75 |
.cache |
| 76 |
.eggs |
| 77 |
.git |
| 78 |
.github |
| 79 |
.tox |
| 80 |
*.egg |
| 81 |
|
| 82 |
testpaths = tests/ |
| 83 |
|
| 84 |
xfail_strict = true |