1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
[pytest]
addopts =
# `pytest-xdist` == -n auto:
# --numprocesses=auto
# Show 10 slowest invocations:
--durations=10
# A bit of verbosity doesn't hurt:
-v
# Report all the things == -rxXs:
-ra
# Show local variables in tracebacks
--showlocals
# Autocollect and invoke the doctests from all modules:
# https://docs.pytest.org/en/stable/doctest.html
--doctest-modules
--junitxml=.test-results/pytest/results.xml
# Fail on non-existing markers:
# * Deprecated since v6.2.0 but may be reintroduced later covering a
# broader scope:
# --strict
# * Exists since v4.5.0 (advised to be used instead of `--strict`):
--strict-markers
# Fail on any config parsing warnings:
# * Exists since v6.0.0rc1
--strict-config
# `pytest-cov`:
-p pytest_cov
--no-cov-on-fail
--cov=ansible_pygments
--cov=src/
--cov=tests/
--cov-branch
--cov-report=term-missing:skip-covered
--cov-report=html:.test-results/pytest/cov/
--cov-report=xml:.test-results/pytest/cov.xml
--cov-context=test
--cov-config=.coveragerc
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
# Marks tests with an empty parameterset as xfail(run=False)
empty_parameter_set_mark = xfail
faulthandler_timeout = 30
filterwarnings =
error
# https://docs.pytest.org/en/stable/usage.html#creating-junitxml-format-files
junit_duration_report = call
junit_family = xunit2
junit_logging = all
junit_log_passing_tests = true
junit_suite_name = ansible_pygments_test_suite
minversion = 6.2.0
norecursedirs =
build
dist
docs
src/ansible_pygments.egg-info
.cache
.eggs
.git
.github
.tox
*.egg
testpaths = tests/
xfail_strict = true
|