Added pixelRatio option to override canvas upscaling. Resolves #876, test included...
[dygraphs.git] / scripts / run-tests.sh
index 4b1c77f..5dd166f 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # Starts the http-server and runs mocha-phantomjs-based tests
 # Note that you must run `npm run build` or `npm run watch` before running this.
+# Additional arguments are passed to mocha-phantomjs, e.g.
+# run-tests.sh --grep interaction-model
 set -o errexit
 
 # Run http-server and save its PID
@@ -18,4 +20,4 @@ trap finish EXIT
 sleep 1
 
 # Start the tests
-mocha-phantomjs http://localhost:8081/auto_tests/runner.html
+mocha-phantomjs http://localhost:8081/auto_tests/runner.html "$@"