X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=scripts%2Frun-tests.sh;h=5dd166f00a74cf05cf123793b876b52017d604f5;hb=a5f3d82dc74669f378a1e7c63e10bd9804ce4ca2;hp=4b1c77f0fb5fa374365967fe8fbcc65577ca84d0;hpb=514a10f302043e48459a79806775b6925dc9a7b5;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 "$@"