Commit e980f8b2 by Victor Shnayder

add notes on how to run individual tests

parent 9a54295e
...@@ -35,6 +35,10 @@ This runs all the tests (long, uses collectstatic): ...@@ -35,6 +35,10 @@ This runs all the tests (long, uses collectstatic):
rake test rake test
If if you aren't changing static files, can run `rake test` once, then run
rake fasttest_{lms,cms}
xmodule can be tested independently, with this: xmodule can be tested independently, with this:
rake test_common/lib/xmodule rake test_common/lib/xmodule
...@@ -43,3 +47,21 @@ To see all available rake commands, do this: ...@@ -43,3 +47,21 @@ To see all available rake commands, do this:
rake -T rake -T
To run a single django test class:
django-admin.py test --settings=lms.envs.test --pythonpath=. lms/djangoapps/courseware/tests/tests.py:TestViewAuth
To run a single django test:
django-admin.py test --settings=lms.envs.test --pythonpath=. lms/djangoapps/courseware/tests/tests.py:TestViewAuth.test_dark_launch
To run a single nose test file:
nosetests common/lib/xmodule/xmodule/tests/test_stringify.py
To run a single nose test:
nosetests common/lib/xmodule/xmodule/tests/test_stringify.py:test_stringify
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment