summaryrefslogtreecommitdiff
path: root/pytest.ini
blob: 909f146c5560631ee1d10429a0dd41824d51cf5a (plain)
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
[pytest]
addopts =
    # `pytest-xdist`:
    #--numprocesses=auto

    # `pytest-mon`:
    # useful for live testing with `pytest-watch` during development:
    #--testmon

    # 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=.test-results/pytest/results.xml

    # `pytest-cov`:
    --cov=cherrypy
    --cov-report term-missing:skip-covered
    --cov-report xml
    # --cov-report xml:.test-results/pytest/cov.xml  # alternatively move it here
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
filterwarnings =
    error
    ignore:Use cheroot.test.webtest:DeprecationWarning
    ignore:This method will be removed in future versions.*:DeprecationWarning
    ignore:Unable to verify that the server is bound on:UserWarning
    ignore:Not importing directory .*.tox/py35/lib/python3.5/site-packages/(zc|repoze).* missing __init__:ImportWarning
    # ref: https://github.com/mhammond/pywin32/issues/1256#issuecomment-527972824 :
    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
junit_duration_report = call
junit_family = xunit2
junit_suite_name = cherrypy_test_suite
minversion = 5.3.5
norecursedirs =
    build
    cherrypy.egg-info
    dist
    docs
    .cache
    .eggs
    .git
    .github
    .tox
testpaths = cherrypy/test/