X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=docs%2FHACKING;h=cab59eb7496f1dd347488c36e408c74069a8ca83;hb=da4f6578b4d4961a3f759eea7767941e2cce65f6;hp=b5785bf1545709a8d565ed6f1179b3d28f65f957;hpb=c3f6f34ad0b60b812d1b0fd33b5f758f52697f0c;p=patchwork diff --git a/docs/HACKING b/docs/HACKING index b5785bf..cab59eb 100644 --- a/docs/HACKING +++ b/docs/HACKING @@ -7,7 +7,8 @@ It's always a good idea to use virtualenv to develop python software. Because we're going to recompile our dependencies, we'll also need development headers: - - For the MySQL/MariaDB setups: mariadb-devel (Fedora) + - For the MySQL/MariaDB setups: mariadb-devel (Fedora), libmysqlclient-dev + (Debian) 2. Create a new virtual environement. Virtual environments are "instances" of your system python, without any of the extra python packages installed. @@ -50,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