#!/bin/bash

this_scripts_dir="$(dirname `type -p $0`)"
server="$this_scripts_dir/../node_modules/.bin/test-server"

set -o monitor

STATIC_DIR=test/static REQUIREJS_CONFIG=requirejs-config.json node $server &

sleep 1

open -g http://localhost:1335/app

sleep 0.5

echo "Running tests... ctrl-c to kill server"

fg
