diff --git a/.gitignore b/.gitignore index b87492e..f8e7ff7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ dist/* build/ .tox/* env/* +cover/* diff --git a/tox.ini b/tox.ini index 7d042b2..42f9346 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,py35,pep8,cover +envlist = py27,py35,pep8,cover_report skipsdist = True [testenv] @@ -13,10 +13,15 @@ setenv = VIRTUAL_ENV={envdir} commands = flake8 [testenv:cover] +commands = + coverage run --source='adjutant' .tox/cover/bin/adjutant-api test {posargs} + coverage html -d cover + coverage xml -o cover/coverage.xml + +[testenv:cover_report] commands = coverage run --source='.' .tox/cover/bin/adjutant-api test {posargs} coverage report --include adjutant/* -m -basepython = python2.7 [testenv:venv] commands = {posargs}