From 6c3e95b3f15fcaabb89625412d8270f5d5a8fdef Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Thu, 19 Jun 2014 11:25:08 -0400 Subject: [PATCH] Documentation for: Run a single test. I mean it. --- docs/en_us/internal/testing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en_us/internal/testing.md b/docs/en_us/internal/testing.md index 39ecc37b89..70d286a84b 100644 --- a/docs/en_us/internal/testing.md +++ b/docs/en_us/internal/testing.md @@ -133,6 +133,10 @@ or To run a single django test class: paver test_system -t lms/djangoapps/courseware/tests/tests.py:ActivateLoginTest + +When developing tests, it is often helpful to be able to really just run one single test without the overhead of PIP installs, UX builds, etc. In this case, it is helpful to look at the output of paver, and run just the specific command (optionally, stripping away coverage metrics). At the time of this writing, the command is: + + python ./manage.py lms test --verbosity=1 lms/djangoapps/courseware/tests/test_courses.py --traceback --settings=test To run a single django test: