forked from ansible/ansible-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
64 lines (58 loc) · 2.57 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
[pytest]
addopts =
# `pytest-xdist`:
# a few tests currently fail with this:
# -n auto # we need to uncomment it once it's fixed
# ^ this speeds up the test suite from ~40s to ~10s
# `pytest-mon`:
# useful for live testing with `pytest-watch` during development:
# --testmon
--durations=10
-v
-ra
--showlocals
--doctest-modules
--junitxml=.test-results/pytest/results.xml
# `pytest-cov`:
--cov=ansiblelint
--cov-report term-missing:skip-covered
--cov-report xml:.test-results/pytest/cov.xml
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
filterwarnings =
error
# TODO: delete the following ignores once we get rid of `imp`
# Ref: https://github.com/ansible/ansible-lint/issues/602
ignore:the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses:DeprecationWarning
ignore:the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses:PendingDeprecationWarning
# TODO: delete the following ignores once we get rid of `inspect.getargspec()`
# Ref: https://github.com/ansible/ansible-lint/issues/603
ignore:inspect.getargspec\(\) is deprecated, use inspect.signature\(\) instead:DeprecationWarning
ignore:inspect.getargspec\(\) is deprecated, use inspect.signature\(\) or inspect.getfullargspec\(\):DeprecationWarning
ignore:inspect.getargspec\(\) is deprecated since Python 3.0, use inspect.signature\(\) or inspect.getfullargspec\(\):DeprecationWarning
# TODO: delete the following ignores once Ansible gets rid of direct
# imports from `collections`
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working:DeprecationWarning
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working:DeprecationWarning
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working:DeprecationWarning
junit_duration_report = call
junit_family = xunit2
junit_suite_name = ansible_lint_test_suite
minversion = 4.6.6
norecursedirs =
build
dist
docs
lib/ansible_lint.egg-info
.cache
.eggs
.git
.github
.tox
*.egg
python_files =
test_*.py
# Ref: https://docs.pytest.org/en/latest/reference.html#confval-python_files
# Needed to discover legacy nose test modules:
Test*.py
testpaths = test/
xfail_strict = true