Created
October 23, 2014 18:20
-
-
Save dnozay/5b9b818ff0dc857d1358 to your computer and use it in GitHub Desktop.
tox + coverage : getting combined python code coverage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[testenv] | |
deps=coverage | |
commands = | |
coverage erase | |
coverage run setup.py test | |
coverage report --omit='.tox/*' | |
coverage html --omit='.tox/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[testenv:py26] | |
basepython = python2.6 | |
[testenv:py33] | |
basepython = python3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tox] | |
envlist = begin,py{26,27,33},end | |
[testenv] | |
deps=coverage | |
commands = | |
coverage run --append setup.py test | |
coverage report --omit='.tox/*' | |
[testenv:begin] | |
commands = coverage erase | |
[testenv:py26] | |
basepython = python2.6 | |
[testenv:py27] | |
basepython = python2.7 | |
[testenv:py33] | |
basepython = python3.3 | |
[testenv:end] | |
commands = | |
coverage report --omit='.tox/*' | |
coverage html --omit='.tox/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment