##// END OF EJS Templates
Merge pull request #5078 from ellisonbg/js-readme...
Brian E. Granger -
r15263:7b9a3a87 merge
parent child Browse files
Show More
@@ -1,23 +1,28 b''
1 # IPython Notebook Javascript Tests
1 # IPython Notebook JavaScript Tests
2
2
3 Regression tests for the web notebook. These tests depend on
3 This directory includes regression tests for the web notebook. These tests
4 [CasperJS](http://casperjs.org/), which in turn requires
4 depend on [CasperJS](http://casperjs.org/), which in turn requires a recent
5 a recent version of [PhantomJS](http://phantomjs.org/).
5 version of [PhantomJS](http://phantomjs.org/).
6
6
7 Run the tests using:
7 The JavaScript tests are organized into subdirectories that match those in
8 `static` (`base', `notebook`, `services`, `tree`, etc.).
9
10 To run all of the JavaScript tests do:
8
11
9 ```
12 ```
10 iptest js
13 iptest js
11 ```
14 ```
12
15
13 For finer granularity, or to specify more options, you can also run the
16 To run the JavaScript tests in a single subdirectory (`notebook` in this
14 following `casperjs` command
17 case) do:
15
18
16 ```sh
19 ```
17 /path/to/bin/casperjs test --includes=util.js test_cases
20 iptest js/notebook
18 ```
21 ```
19
22
20 The file `util.js` contains utility functions for tests, including a path to a
23 The file `util.js` contains utility functions for tests, including a path to
21 running notebook server on localhost (http://127.0.0.1) with the port number
24 a running notebook server on localhost (http://127.0.0.1) with the port
22 specified as a command line argument to the test suite. Port 8888 is used if
25 number specified as a command line argument to the test suite. Port 8888 is
23 `--port=` is not specified.
26 used if `--port=` is not specified. When you run these tests using `iptest`
27 you do not, however, have to start a notebook server yourself; that is done
28 automatically.
General Comments 0
You need to be logged in to leave comments. Login now