Skip to content

Commit

Permalink
Run coverage on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Sep 5, 2018
1 parent c32d612 commit d061f2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions requirements/testing.txt
Expand Up @@ -5,6 +5,7 @@ pytest==3.7.4
pytest-django==3.4.2
pytest-describe==0.11.1
pytest-xdist==1.23.0
pytest-coverage
apipkg==1.5
execnet==1.5.0

Expand Down
11 changes: 4 additions & 7 deletions tox.ini
Expand Up @@ -6,7 +6,7 @@ skipsdist = True
[travis]
python =
2.7: py27
3.6: py36
3.6: py36, coverage

[testenv]
description = run test suite for the application with {basepython}
Expand All @@ -19,7 +19,7 @@ setenv =
deps = -r{toxinidir}/requirements/testing.txt
changedir = {toxinidir}/readthedocs
commands =
py.test {posargs}
py.test --cov-report= --cov-config {toxinidir}/.coveragerc --cov=. {posargs}

[testenv:docs]
description = build readthedocs documentation
Expand Down Expand Up @@ -54,11 +54,8 @@ commands =
[testenv:coverage]
description = run test suite with code coverage for the application with {basepython}
deps =
-r{toxinidir}/requirements/testing.txt
pytest-cov
deps = coverage
whitelist_externals = echo
commands =
py.test --disable-pytest-warnings \
--cov-report=term --cov-report=html --cov-config {toxinidir}/.coveragerc --cov=. {posargs}
coverage report --show-missing --fail-under=79
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html

0 comments on commit d061f2f

Please sign in to comment.