X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=scripts%2Frun-tests.sh;h=5dd166f00a74cf05cf123793b876b52017d604f5;hb=fd6b8dadbaa0614671bef1508c23d6a932e25081;hp=4b1c77f0fb5fa374365967fe8fbcc65577ca84d0;hpb=ce31caf22475e3e1fd6d9fea192d61ff4fcd7fac;p=dygraphs.git diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 4b1c77f..5dd166f 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -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 "$@"