2 echo "Starting server..."
3 node tests/server.js >/dev/null &
5 echo "Waiting for server to be ready..."
8 echo "Starting tests..."
9 phantomjs tests/phantom.js "http://localhost:3000/tests"
12 kill -9 `cat tests/pid.txt` >/dev/null
13 rm tests/pid.txt > /dev/null