#!/bin/bash
if [ $# -gt 0 ]
then
if [ $1 != "compiled" ]
echo
echo "Invalid argument passed. Call './test.sh compiled' if don't want to compile the source before."
exit 1
fi
else
grunt
./node_modules/mocha-phantomjs/bin/mocha-phantomjs test/test.html