diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-11-08 13:25:57 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-11-10 20:27:28 +0800 |
commit | a5d803a565aea5b655058ff244e9ae8356004963 (patch) | |
tree | e13853ea9e96e8918000c5df41fd869f36bf2a38 /docs/HACKING | |
parent | acfa769db38b67fcf0e6e02e7e2e166a6bc9b03c (diff) | |
download | patchwork-a5d803a565aea5b655058ff244e9ae8356004963.tar patchwork-a5d803a565aea5b655058ff244e9ae8356004963.tar.gz |
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>
Diffstat (limited to 'docs/HACKING')
-rw-r--r-- | docs/HACKING | 16 |
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 |