Skip to content
Snippets Groups Projects
Unverified Commit 4a15ff6a authored by Diana Huang's avatar Diana Huang Committed by GitHub
Browse files

Merge pull request #25702 from edx/diana/update-js-testing

Clarify how to debug javascript tests in testing.rst.
parents 181cb701 1049c8c5
No related branches found
No related tags found
No related merge requests found
......@@ -368,9 +368,20 @@ To run JavaScript tests in a browser, run these commands::
paver test_js_dev -s common
paver test_js_dev -s common-requirejs
Debugging Specific Javascript Tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The best way to debug individual tests is to run the test suite in the browser and
use your browser's Javascript debugger. The debug page will allow you to select
an individual test and only view the results of that test.
Debugging Tests in a Browser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To debug these tests on devstack in a local browser:
* first run the appropriate test_js_dev command from above which will open a browser using XQuartz
* first run the appropriate test_js_dev command from above
* open http://localhost:19876/debug.html in your host system's browser of choice
* this will run all the tests and show you the results including details of any failures
* you can click on an individually failing test and/or suite to re-run it by itself
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment