Debian Codegraph @

examples/adhoc-layout/tox.ini

raw
1 [tox]
2 envlist = pypy3,py39,report
3
4 [tool:pytest]
5 addopts =
6 --cov-report=term-missing
7
8 [testenv]
9 setenv =
10 py{py3,39}: COVERAGE_FILE = .coverage.{envname}
11 commands = pytest --cov --cov-config={toxinidir}/.coveragerc {posargs:-vv}
12 deps =
13 pytest
14 coverage
15 # Note:
16 # This is here just to allow examples to be tested against
17 # the current code of pytest-cov. If you copy this then
18 # use "pytest-cov" instead of "../.."
19 ../..
20
21 depends =
22 report: pypy3,py39
23
24 # note that this is necessary to prevent the tests importing the code from your badly laid project
25 changedir = tests
26
27 [testenv:report]
28 skip_install = true
29 deps = coverage
30 commands =
31 coverage combine
32 coverage html
33 coverage report --fail-under=100