start playing with tox & coverage

This commit is contained in:
Olivier Larchevêque 2013-08-08 18:38:06 -04:00
parent de18189a9d
commit 6f7dc82ca9
3 changed files with 12 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
source=
.
omit=
.tox/*
setup.py
secretquestions/migrations/*

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
*egg-info
*.pyc
.tox
htmlcov
.coverage

View File

@ -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 =