[PATCH 1/2] docs: Add a note about how to run tests

Damien Lespiau damien.lespiau at intel.com
Sun Nov 9 00:25:57 AEDT 2014


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 at intel.com>
---
 docs/HACKING | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

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
-- 
1.8.3.1



More information about the Patchwork mailing list