diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..b6dc4ff --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +omit = *_patch*,chaussette/tests/* +source = chaussette +include = chaussette/* + +[html] +directory = html + diff --git a/tox.ini b/tox.ini index 113fe3f..e016202 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,15 @@ envlist = flake8,py26,py27,py33,docs [testenv] -commands = - python setup.py develop - python setup.py test +commands = {envbindir}/python setup.py test + +[testenv:py27] +deps = coverage + +commands = coverage erase + {envbindir}/python setup.py develop + coverage run setup.py test + coverage html [testenv:docs] deps = Sphinx