start playing with tox & coverage
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Thu, 8 Aug 2013 22:38:06 +0000 (18:38 -0400)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Thu, 8 Aug 2013 22:38:06 +0000 (18:38 -0400)
.coveragerc [new file with mode: 0644]
.gitignore
tox.ini

diff --git a/.coveragerc b/.coveragerc
new file mode 100644 (file)
index 0000000..50b4541
--- /dev/null
@@ -0,0 +1,7 @@
+[run]
+source=
+    .
+omit=
+    .tox/*
+    setup.py
+    secretquestions/migrations/*
index 95a52ec..4165bb8 100644 (file)
@@ -1,3 +1,5 @@
 *egg-info
 *.pyc
 .tox
+htmlcov
+.coverage
diff --git a/tox.ini b/tox.ini
index d4862e7..87b99a3 100644 (file)
--- 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 =