blob: 58231eb68be34e3fc4156e5a1b7dfc4db8863899 [file] [log] [blame]
#!/bin/bash
: ${TIMEOUT:=50000}
: ${REPORTER:="spec"}
: ${BAIL:=1}
if [ $BAIL -eq 1 ]; then
BAIL_OPT="--bail"
else
BAIL_OPT=""
fi
if [ $PERF ]; then
node tests/performance/index.js
elif [ ! $COVERAGE ]; then
./node_modules/.bin/mocha \
$BAIL_OPT \
--timeout $TIMEOUT \
--require=./tests/integration/node.setup.js \
--reporter=$REPORTER \
--grep=$GREP \
tests/integration/test.*.js
else
./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- \
$BAIL_OPT \
--timeout $TIMEOUT \
--require=./tests/integration/node.setup.js \
--reporter=$REPORTER \
--grep=$GREP \
tests/integration/test.*.js
fi