X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=run-tests.sh;fp=run-tests.sh;h=0000000000000000000000000000000000000000;hb=514a10f302043e48459a79806775b6925dc9a7b5;hp=4b1c77f0fb5fa374365967fe8fbcc65577ca84d0;hpb=4dbba4b17c6203b3c1493fd99dfcf12cb88103e7;p=dygraphs.git diff --git a/run-tests.sh b/run-tests.sh deleted file mode 100755 index 4b1c77f..0000000 --- a/run-tests.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/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. -set -o errexit - -# Run http-server and save its PID -http-server -p 8081 > /dev/null & -SERVER_PID=$! -function finish() { - kill -TERM $SERVER_PID -} -trap finish EXIT - -# the following sleep step is not really necessary -# as http-server starts almost instantenously; -# but letting the server settle might help prevent -# possible racing conditions -sleep 1 - -# Start the tests -mocha-phantomjs http://localhost:8081/auto_tests/runner.html