Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
421a9cc0
Commit
421a9cc0
authored
Oct 08, 2015
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add details about debugging Jasmine tests
parent
6b7f1bce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
docs/en_us/internal/testing.rst
+12
-1
No files found.
docs/en_us/internal/testing.rst
View file @
421a9cc0
...
...
@@ -281,7 +281,7 @@ console::
paver test_js_run -s common
paver test_js_run -s common-requirejs
To run JavaScript tests in
your default browser:
:
To run JavaScript tests in
a browser
:
paver test_js_dev -s lms
paver test_js_dev -s lms-coffee
...
...
@@ -291,6 +291,17 @@ To run JavaScript tests in your default browser::
paver test_js_dev -s common
paver test_js_dev -s common-requirejs
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
* open the same URL in your browser but change the IP address to 192.168.33.10, e.g.
http://192.168.33.10:TEST_PORT/suite/cms
* 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
* you can now use the browser's developer tools to debug as you would any other JavaScript code
Note: the port is also output to the console that you ran the tests from if you find that easier.
These paver commands call through to a custom test runner. For more
info, see `js-test-tool <https://github.com/edx/js-test-tool>`__.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment