From 408ae4df9c06ce2fc75737bfd97fb1dae1f4aa49 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 6 Jun 2011 09:28:08 -0400 Subject: [PATCH] un-HTMLify autotests README --- auto_tests/README | 46 ++++++++++++++++++++++++++++++++++++++++++++++ auto_tests/README.html | 36 ------------------------------------ 2 files changed, 46 insertions(+), 36 deletions(-) create mode 100644 auto_tests/README delete mode 100644 auto_tests/README.html diff --git a/auto_tests/README b/auto_tests/README new file mode 100644 index 0000000..caf0bea --- /dev/null +++ b/auto_tests/README @@ -0,0 +1,46 @@ +These tests are run with js-test-driver +(http://code.google.com/p/js-test-driver/). + +Running 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 + + +Debugging tests +--------------- + +This is a bit of a hack, but you can also run tests manually inside the browser +using auto_tests/misc/local.html. + +Once you've opened that page, open up the JavaScript console and run something +like: + + new SimpleDrawingTestCase().runTest("testDrawSimpleRangePlusOne") + +to run just one test. This is useful for seeing the dygraph that the test +creates, setting breakpoints, etc. + +Please don't rely on it as proof that your tests pass; the command-line is the +reference for ensuring Dygraphs automated tests pass. + + +(This is a specialized version of the instructions found at +http://code.google.com/p/js-test-driver/wiki/GettingStarted. +They're listed as a courtesy, but you really should get to understand +js-test-driver, which has lots of powerful features.) diff --git a/auto_tests/README.html b/auto_tests/README.html deleted file mode 100644 index d5826b9..0000000 --- a/auto_tests/README.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -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: - - -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. - - -- 2.7.4