From 6f7dc82ca909ff05c200f8aeee8188d6f42fe755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Larchev=C3=AAque?= Date: Thu, 8 Aug 2013 18:38:06 -0400 Subject: [PATCH] start playing with tox & coverage --- .coveragerc | 7 +++++++ .gitignore | 2 ++ tox.ini | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .coveragerc 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 =