File tree 2 files changed +10
-16
lines changed
2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = clean, py27,py38,report
2
+ envlist = py27,py38,report
3
3
4
4
[tool:pytest]
5
5
addopts =
6
6
--cov-report =term-missing
7
7
8
8
[testenv]
9
- commands = pytest --cov --cov-append --cov-config ={toxinidir}/.coveragerc {posargs:-vv}
9
+ setenv =
10
+ py{27,38}: COVERAGE_FILE = .coverage.{envname}
11
+ commands = pytest --cov --cov-config ={toxinidir}/.coveragerc {posargs:-vv}
10
12
deps =
11
13
pytest
12
14
coverage
17
19
../..
18
20
19
21
depends =
20
- {py27,py38}: clean
21
22
report: py27,py38
22
23
23
24
# note that this is necessary to prevent the tests importing the code from your badly laid project
@@ -27,10 +28,6 @@ changedir = tests
27
28
skip_install = true
28
29
deps = coverage
29
30
commands =
31
+ coverage combine
30
32
coverage html
31
33
coverage report --fail-under =100
32
-
33
- [testenv:clean]
34
- skip_install = true
35
- deps = coverage
36
- commands = coverage erase
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = clean, py27,py38,report
2
+ envlist = py27,py38,report
3
3
4
4
[tool:pytest]
5
5
testpaths = tests
6
6
addopts =
7
7
--cov-report =term-missing
8
8
9
9
[testenv]
10
- commands = pytest --cov --cov-append {posargs:-vv}
10
+ setenv =
11
+ py{27,38}: COVERAGE_FILE = .coverage.{envname}
12
+ commands = pytest --cov {posargs:-vv}
11
13
deps =
12
14
pytest
13
15
coverage
@@ -18,17 +20,12 @@ deps =
18
20
../..
19
21
20
22
depends =
21
- {py27,py38}: clean
22
23
report: py27,py38
23
24
24
25
[testenv:report]
25
26
skip_install = true
26
27
deps = coverage
27
28
commands =
29
+ coverage combine
28
30
coverage html
29
31
coverage report --fail-under =100
30
-
31
- [testenv:clean]
32
- skip_install = true
33
- deps = coverage
34
- commands = coverage erase
You can’t perform that action at this time.
0 commit comments