Skip to content

Commit

Permalink
Add section in docs about selectively running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Jul 15, 2015
1 parent 57a3152 commit a57cbd8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ settings.py):
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'


Selectively running tests
~~~~~~~~~~~~~~~~~~~~~~~~~

If you do a ``python manage.py test`` you will run the complete testsuite, and
this can take a while. You can control which tests will be executed like this.

Test only the tests in the 'core' app::

python manage.py test wger.core

Test only the tests in the 'test_user.py` file in the core app::

python manage.py test wger.core.tests.test_user

Test only the tests in 'StatusUserTestCase' in the file 'test_user.py` file in
the core app::

python manage.py test wger.core.tests.test_user.StatusUserTestCase


Using runserver_plus
~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit a57cbd8

Please sign in to comment.