These tests are run with
js-test-driver. To use:
This is a specialized version of the instructions found at the js-test-driver
Getting Started wiki. They're listed as a courtesy, but you really should
get to understand js-test-driver, which has lots of powerful features.
To run tests:
- Start a terminal window at the dygraphs root directory (one
directory up from here.)
- From there, you start the test server and capture at least one slave
browser.
- Run
java -jar ./auto_tests/lib/JsTestDriver-1.3.2.jar --port
9876
- Open
http://localhost:9876/capture in the browser you want to use for
your test.
- Run the tests with
java -jar ./auto_tests/lib/JsTestDriver-1.3.2.jar
--tests all
This is a bit of a hack, but you can also run tests locally, and manually, by
using this testing page. Please don't rely on it
as proof that your tests pass; the command-line is the reference for ensuring
Dygraphs automated tests pass.