#!/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
sleep 1
# Start the tests
-mocha-phantomjs http://localhost:8081/auto_tests/runner.html
+mocha-phantomjs http://localhost:8081/auto_tests/runner.html "$@"