#!/bin/sh -e

. ./scripts/colors
echo "${Yellow}Running tests.${Rst}"

NODE_ENV=test NODE_PATH=.:${NODE_PATH} `npm bin`/mocha \
    --compilers js:babel-register \
    --bail \
    --check-leaks \
    --growl \
    --recursive \
    --reporter spec \
    --ui bdd \
    --watch \
    $(find test -name \*.test.js) \
    $@
