]> git.ozlabs.org Git - patchwork/commitdiff
docs: Add a note about how to run tests
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 8 Nov 2014 13:25:57 +0000 (13:25 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 10 Nov 2014 12:27:28 +0000 (20:27 +0800)
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>
docs/HACKING

index 5ee232d57324fd1994f467e75de2bcb03bdbb457..cab59eb7496f1dd347488c36e408c74069a8ca83 100644 (file)
@@ -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