From a5d803a565aea5b655058ff244e9ae8356004963 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sat, 8 Nov 2014 13:25:57 +0000 Subject: 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 Signed-off-by: Jeremy Kerr --- docs/HACKING | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3