File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ source =
55
66[run]
77branch = true
8- parallel = true
98source =
109 example
1110 .
1211
1312[report]
14- show_missing = true
1513precision = 2
14+ show_missing = true
Original file line number Diff line number Diff line change 11[tox]
2- envlist = pypy3,py39 ,report
2+ envlist = clean,pypy311,py311 ,report
33
44[tool:pytest]
55addopts =
66 --cov-report =term-missing
77
88[testenv]
9- setenv =
10- py{py3,39}: COVERAGE_FILE = .coverage.{envname}
11- commands = pytest --cov --cov-config ={toxinidir}/.coveragerc {posargs:-vv}
9+ commands = pytest --cov --cov-append --cov-config ={toxinidir}/.coveragerc {posargs:-vv}
1210deps =
1311 pytest
1412 coverage
@@ -19,15 +17,20 @@ deps =
1917 ../..
2018
2119depends =
22- report: pypy3,py39
20+ report: pypy311,py311
21+ {pypy311,py311}: clean
2322
2423# note that this is necessary to prevent the tests importing the code from your badly laid project
2524changedir = tests
2625
26+ [testenv:clean]
27+ skip_install = true
28+ deps = coverage
29+ commands =
30+ coverage erase
31+
2732[testenv:report]
2833skip_install = true
2934deps = coverage
3035commands =
31- coverage combine
32- coverage html
3336 coverage report --fail-under =100
Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ source =
55
66[run]
77branch = true
8- parallel = true
98source =
109 src/example
1110 tests
1211
1312[report]
14- show_missing = true
1513precision = 2
14+ show_missing = true
Original file line number Diff line number Diff line change 11[tox]
2- envlist = clean,pypy310,py310 ,report
2+ envlist = clean,pypy311,py311 ,report
33
44[tool:pytest]
55testpaths = tests
1818 ../..
1919
2020depends =
21- report: pypy310,py310
22- {pypy310,py310 }: clean
21+ report: pypy311,py311
22+ {pypy311,py311 }: clean
2323
2424[testenv:clean]
2525skip_install = true
You can’t perform that action at this time.
0 commit comments