This repository has been archived by the owner on May 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
/
pytest.ini
85 lines (70 loc) · 2.01 KB
/
pytest.ini
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
76
77
78
79
80
81
82
83
84
85
[pytest]
addopts =
# `pytest-xdist` == -n auto:
#--numprocesses=auto # FIXME: uncomment once available
# show 10 slowest invocations:
--durations=10
# a bit of verbosity doesn't hurt:
-v
# report all the things == -rxXs:
-ra
# show values of the local vars in errors:
--showlocals
# autocollect and invoke the doctests from all modules:
--doctest-modules
# dump the test results in junit format:
--junitxml=ci_output/testresults/pytest.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
# `pytest-cov`, "-p" preloads the module early:
-p pytest_cov
--no-cov-on-fail
--cov=ansibullbot
--cov=tests
--cov-report=term-missing:skip-covered
--cov-report=xml:ci_output/codecoverage/pytest-cov.xml
--cov-context=test
--cov-config=.coveragerc
# Skip these paths during the test collection stage:
--ignore=tests/utils
--ignore=tests/manual
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
# Marks tests with an empty parameterset as xfail(run=False)
empty_parameter_set_mark = xfail
# The timeout is 10m because `test_idempotence` takes 6-10min to complete:
faulthandler_timeout = 600
filterwarnings = error
junit_duration_report = call
# xunit1 contains more metadata than xunit2 so it's better for CI UIs:
junit_family = xunit1
junit_logging = all
junit_log_passing_tests = true
junit_suite_name = ansibullbot_test_suite
# A mapping of markers to their descriptions allowed in strict mode:
markers =
minversion = 6.1.0
# Optimize pytest's lookup by restricting potentially deep dir tree scan:
norecursedirs =
ansibullbot.egg-info
build
ci_output
dist
docs
examples
playbooks
pylint_plugins
scratch
scripts
templates
.cache
.eggs
.git
.github
.tox
*.egg
testpaths = tests/
xfail_strict = true