1 |
|
2 |
|
3 | : ${TIMEOUT:=50000}
|
4 | : ${REPORTER:="spec"}
|
5 | : ${BAIL:=1}
|
6 |
|
7 | if [ $BAIL -eq 1 ]; then
|
8 | BAIL_OPT="--bail"
|
9 | else
|
10 | BAIL_OPT=""
|
11 | fi
|
12 |
|
13 | ./node_modules/.bin/mocha \
|
14 | $BAIL_OPT \
|
15 | --timeout $TIMEOUT \
|
16 | --require=./tests/node.setup.js \
|
17 | --reporter=$REPORTER \
|
18 | --grep=$GREP \
|
19 | tests/test.*.js
|