summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2017-05-13 01:44:09 +0200
committerJelle van der Waa <jelle@vdwaa.nl>2017-05-13 01:44:09 +0200
commit2585c80155beb3b136ed8d97912462d6d8e35822 (patch)
treec13a2bd4d64740bcb698d2c90ea0baae40512db7 /README.md
parent1d8dd5079526b2855391fb6c6408e474568f28f0 (diff)
downloadarchweb-2585c80155beb3b136ed8d97912462d6d8e35822.tar.gz
archweb-2585c80155beb3b136ed8d97912462d6d8e35822.zip
README: describe running unit tests / coverage
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1f251647..48249ac1 100644
--- a/README.md
+++ b/README.md
@@ -85,6 +85,20 @@ required. A simple debugging SMTP server can be setup using Python.
In local_settings.py change the EMAIL_HOST to 'localhost' and the EMAIL_PORT to
1025.
+# Running tests and coverage
+
+To the unittests execute the following commands:
+
+ ./manage.py collectstatic --noinput
+ ./manage.py test
+
+Running coverage:
+
+ pip install coverage
+ coverage run --omit='env*' --source='.' manage.py test
+ coverage report
+
+
# Production Installation
Ask someone who knows, or you are going to be in trouble.