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