| 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 |
# A bit of verbosity doesn't hurt: |
| 12 |
-v |
| 13 |
|
| 14 |
# Report all the things == -rxXs: |
| 15 |
-ra |
| 16 |
|
| 17 |
# Show values of the local vars in errors/tracebacks: |
| 18 |
--showlocals |
| 19 |
|
| 20 |
# Autocollect and invoke the doctests from all modules: |
| 21 |
# https://docs.pytest.org/en/stable/doctest.html |
| 22 |
--doctest-modules |
| 23 |
|
| 24 |
# Dump the test results in junit format: |
| 25 |
--junitxml=.test-results/pytest/results.xml |
| 26 |
|
| 27 |
# `pytest-cov`: |
| 28 |
--cov |
| 29 |
--cov=sphinxcontrib.towncrier |
| 30 |
--cov=tests/ |
| 31 |
--cov-report term-missing:skip-covered |
| 32 |
--cov-report xml:.test-results/pytest/cov.xml |
| 33 |
|
| 34 |
# Pre-load `pytest-cov` plugin early: |
| 35 |
-p pytest_cov |
| 36 |
|
| 37 |
# Fail on config parsing warnings: |
| 38 |
# --strict-config |
| 39 |
|
| 40 |
# Fail on non-existing markers: |
| 41 |
# * Deprecated since v6.2.0 but may be reintroduced later covering a |
| 42 |
# broader scope: |
| 43 |
# --strict |
| 44 |
# * Exists since v4.5.0 (advised to be used instead of `--strict`): |
| 45 |
--strict-markers |
| 46 |
|
| 47 |
doctest_optionflags = ALLOW_UNICODE ELLIPSIS |
| 48 |
|
| 49 |
# Marks tests with an empty parameterset as xfail(run=False) |
| 50 |
empty_parameter_set_mark = xfail |
| 51 |
|
| 52 |
faulthandler_timeout = 30 |
| 53 |
|
| 54 |
filterwarnings = |
| 55 |
error |
| 56 |
|
| 57 |
# FIXME: drop this once `pytest-cov` is updated. |
| 58 |
# Ref: https://github.com/pytest-dev/pytest-cov/issues/557 |
| 59 |
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning |
| 60 |
|
| 61 |
# FIXME: drop this once `towncrier < 19.9.0` is no longer supported. |
| 62 |
ignore:Deprecated call to `pkg_resources.declare_namespace.'sphinxcontrib'.`.:DeprecationWarning |
| 63 |
|
| 64 |
# FIXME: drop this once `towncrier < 19.9.0` is no longer supported. |
| 65 |
ignore:pkg_resources is deprecated as an API:DeprecationWarning |
| 66 |
|
| 67 |
# https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files |
| 68 |
junit_duration_report = call |
| 69 |
# xunit1 contains more metadata than xunit2 so it's better for CI UIs: |
| 70 |
junit_family = xunit1 |
| 71 |
junit_logging = all |
| 72 |
junit_log_passing_tests = true |
| 73 |
junit_suite_name = towncrier_test_suite |
| 74 |
|
| 75 |
# A mapping of markers to their descriptions allowed in strict mode: |
| 76 |
markers = |
| 77 |
|
| 78 |
minversion = 6.1.0 |
| 79 |
|
| 80 |
# Optimize pytest's lookup by restricting potentially deep dir tree scan: |
| 81 |
norecursedirs = |
| 82 |
build |
| 83 |
dist |
| 84 |
docs |
| 85 |
src/sphinxcontrib_towncrier.egg-info |
| 86 |
.cache |
| 87 |
.eggs |
| 88 |
.git |
| 89 |
.github |
| 90 |
.tox |
| 91 |
*.egg |
| 92 |
|
| 93 |
testpaths = tests/ |
| 94 |
|
| 95 |
xfail_strict = true |