Skip to content

Instantly share code, notes, and snippets.

@dnozay
Created October 23, 2014 18:20
Show Gist options
  • Save dnozay/5b9b818ff0dc857d1358 to your computer and use it in GitHub Desktop.
Save dnozay/5b9b818ff0dc857d1358 to your computer and use it in GitHub Desktop.
tox + coverage : getting combined python code coverage.
[testenv]
deps=coverage
commands =
coverage erase
coverage run setup.py test
coverage report --omit='.tox/*'
coverage html --omit='.tox/*'
[testenv:py26]
basepython = python2.6
[testenv:py33]
basepython = python3.3
[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