Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aigeruth committed Jul 11, 2014
1 parent 747304d commit 8caffe4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
source = docker

[report]
exclude_lines =
if __name__ == .__main__.:

[html]
directory = html
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dist
*.swp

.tox
.coverage
html/*
3 changes: 2 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
mock==1.0.1
mock==1.0.1
coverage==3.7.1
10 changes: 7 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ skipsdist=True
[testenv:py26]
usedevelop=True
commands =
{envpython} tests/test.py
{envbindir}/coverage run -p tests/test.py
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt

[testenv:py27]
usedevelop=True
commands =
{envpython} tests/test.py
{envbindir}/coverage run -p tests/test.py
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt

[testenv]
usedevelop=True
commands =
{envpython} tests/test.py
{envbindir}/coverage run -p tests/test.py
{envbindir}/coverage combine
{envbindir}/coverage report
{envbindir}/coverage html
deps =
-r{toxinidir}/requirements3.txt
-r{toxinidir}/test-requirements.txt
Expand Down

0 comments on commit 8caffe4

Please sign in to comment.