Update testing.md

This commit is contained in:
clytwynec
2014-06-18 16:55:19 -04:00
committed by Christine Lytwynec
parent d6ed01bbf0
commit 49a2369eb2

View File

@@ -239,29 +239,29 @@ the supported development enviornment for the edX Platform.
To run all the bok choy acceptance tests:
rake test:bok_choy
paver test_bokchoy
Once the database has been set up and the static files collected, you can use the 'fast'
option to skip those tasks. This option can also be used with any of the test specs below:
rake test:bok_choy:fast
paver test_bokchoy --fasttest
To run single test, specify the name of the test file. For example:
rake test:bok_choy[test_lms.py]
paver test_bokchoy -t test_lms.py
To run single test faster by not repeating setup tasks:
rake test:bok_choy:fast[test_lms.py]
paver test_bokchoy -t test_lms.py --fasttest
To test only a certain feature, specify the file and the testcase class:
rake test:bok_choy:fast[test_lms.py:RegistrationTest]
paver test_bokchoy -t test_lms.py:RegistrationTest
To execute only a certain test case, specify the file name, class, and
test case method:
rake test:bok_choy:fast[test_lms.py:RegistrationTest.test_register]
paver test_bokchoy -t test_lms.py:RegistrationTest.test_register
During acceptance test execution, log files and also screenshots of failed tests
are captured in test_root/log.