]> git.ozlabs.org Git - patchwork/blobdiff - docs/HACKING
patchwork: Explicitly load states fixtures
[patchwork] / docs / HACKING
index b5785bf1545709a8d565ed6f1179b3d28f65f957..c1b478efe5be6734034076dd3316091337262acf 100644 (file)
@@ -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.
@@ -42,11 +43,27 @@ It's always a good idea to use virtualenv to develop python software.
 
 5. Now one can run patchwork within that environment
 
-   (django-1.7)$ ./apps/manage.py --version
+   (django-1.7)$ ./manage.py --version
    1.7
-   (django-1.7)$ ./apps/manage.py runserver
+   (django-1.7)$ ./manage.py runserver
 
 6. To exit the virtual environment
 
    (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