diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..50b4541 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +[run] +source= + . +omit= + .tox/* + setup.py + secretquestions/migrations/* diff --git a/.gitignore b/.gitignore index 95a52ec..4165bb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *egg-info *.pyc .tox +htmlcov +.coverage diff --git a/tox.ini b/tox.ini index d4862e7..87b99a3 100644 --- a/tox.ini +++ b/tox.ini @@ -4,9 +4,11 @@ envlist = django1.3, django1.4 [testenv] deps = django-registration==0.8 + coverage commands = - django-admin.py test secretquestions --settings=secretquestions.tests.settings + coverage run {envdir}/bin/django-admin.py test secretquestions --settings=secretquestions.tests.settings + coverage report [testenv:django1.3] deps =