Skip to content

Commit

Permalink
A tox environment for coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 21, 2017
1 parent a3a01f1 commit 92700bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@ commands =
zope-testrunner --test-path=src []
deps =
.[test]

[testenv:coverage]
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report -m
# The combo of skip_install and install_command lets
# us test the source, meaning coverage reports come out
# correct
skip_install = true
install_command = pip install -e {[testenv]deps} {packages}
deps =
coverage

0 comments on commit 92700bb

Please sign in to comment.