Write xunit reports for acceptance tests
Refactor rake tasks for acceptance tests Address PR comments
This commit is contained in:
@@ -205,24 +205,27 @@ with Chrome (not Chromium) version 28.0.1500.71 with ChromeDriver
|
||||
version 2.1.210398.
|
||||
|
||||
To run all the acceptance tests:
|
||||
rake test:acceptance
|
||||
|
||||
rake test_acceptance_lms
|
||||
rake test_acceptance_cms
|
||||
To run only for lms or cms:
|
||||
|
||||
rake test:acceptance:lms
|
||||
rake test:acceptance:cms
|
||||
|
||||
To test only a specific feature:
|
||||
|
||||
rake test_acceptance_lms["lms/djangoapps/courseware/features/problems.feature"]
|
||||
rake test:acceptance:lms["lms/djangoapps/courseware/features/problems.feature"]
|
||||
|
||||
To test only a specific scenario
|
||||
|
||||
rake test_acceptance_lms["lms/djangoapps/courseware/features/problems.feature -s 3"]
|
||||
rake test:acceptance:lms["lms/djangoapps/courseware/features/problems.feature -s 3"]
|
||||
|
||||
To start the debugger on failure, add the `--pdb` option:
|
||||
|
||||
rake test_acceptance_lms["lms/djangoapps/courseware/features/problems.feature --pdb"]
|
||||
rake test:acceptance:lms["lms/djangoapps/courseware/features/problems.feature --pdb"]
|
||||
|
||||
To run tests faster by not collecting static files, you can use
|
||||
`rake fasttest_acceptance_lms` and `rake fasttest_acceptance_cms`.
|
||||
`rake test:acceptance:lms:fast` and `rake test:acceptance:cms:fast`.
|
||||
|
||||
Acceptance tests will run on a randomized port and can be run in the background of rake cms and lms or unit tests.
|
||||
To specify the port, change the LETTUCE_SERVER_PORT constant in cms/envs/acceptance.py and lms/envs/acceptance.py
|
||||
|
||||
Reference in New Issue
Block a user