summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-11-08 13:25:57 +0000
committerJeremy Kerr <jk@ozlabs.org>2014-11-10 20:27:28 +0800
commita5d803a565aea5b655058ff244e9ae8356004963 (patch)
treee13853ea9e96e8918000c5df41fd869f36bf2a38
parentacfa769db38b67fcf0e6e02e7e2e166a6bc9b03c (diff)
downloadpatchwork-a5d803a565aea5b655058ff244e9ae8356004963.tar.bz2
patchwork-a5d803a565aea5b655058ff244e9ae8356004963.tar.xz
docs: Add a note about how to run tests
Given that hacking on patchwork is spaced in time, I always forget how to do this. So write down a note. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--docs/HACKING16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/HACKING b/docs/HACKING
index 5ee232d..cab59eb 100644
--- a/docs/HACKING
+++ b/docs/HACKING
@@ -51,3 +51,19 @@ It's always a good idea to use virtualenv to develop python software.
(django-1.7)$ deactivate
$
+
+
+== Running tests
+
+- To run all tests:
+
+ $ ./manage.py test
+
+- To run all test methods (methods which name starts with 'test') of a TestCase
+ subclass:
+
+ $ ./manage.py test patchwork.tests.SubjectCleanUpTest
+
+- To run a single test:
+
+ $ ./manage.py test patchwork.tests.SubjectCleanUpTest.testSubjectCleanup