File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ pytest==3.7.4
5
5
pytest-django==3.4.2
6
6
pytest-describe==0.11.1
7
7
pytest-xdist==1.23.0
8
+ pytest-coverage
8
9
apipkg==1.5
9
10
execnet==1.5.0
10
11
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ skipsdist = True
6
6
[travis]
7
7
python =
8
8
2.7: py27
9
- 3.6: py36
9
+ 3.6: py36, coverage
10
10
11
11
[testenv]
12
12
description = run test suite for the application with {basepython}
@@ -19,7 +19,7 @@ setenv =
19
19
deps = -r{toxinidir}/requirements/testing.txt
20
20
changedir = {toxinidir}/readthedocs
21
21
commands =
22
- py.test {posargs}
22
+ py.test -- cov-report = --cov-config {toxinidir}/.coveragerc -- cov =. {posargs}
23
23
24
24
[testenv:docs]
25
25
description = build readthedocs documentation
@@ -54,11 +54,8 @@ commands =
54
54
55
55
[testenv:coverage]
56
56
description = run test suite with code coverage for the application with {basepython}
57
- deps =
58
- -r{toxinidir}/requirements/testing.txt
59
- pytest-cov
57
+ deps = coverage
60
58
whitelist_externals = echo
61
59
commands =
62
- py.test --disable-pytest-warnings \
63
- --cov-report=term --cov-report=html --cov-config {toxinidir}/.coveragerc --cov=. {posargs}
60
+ coverage report --show-missing --fail-under=79
64
61
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html
You can’t perform that action at this time.
0 commit comments