Skip to content

Commit

Permalink
include coverage in tox like graphite-web
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCech committed Oct 26, 2017
1 parent f51e10a commit 3d97998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist
*.pyc
.tox
.coverage
coverage.xml
htmlcov/*
ve
.idea
Expand Down
9 changes: 7 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ envlist =
lint,

[testenv]
commands = python -m unittest discover
deps = mock
commands =
coverage run --branch --omit=.tox/* -m unittest discover
coverage xml
coverage report
deps =
coverage
mock

[testenv:lint]
deps = flake8
Expand Down

0 comments on commit 3d97998

Please sign in to comment.