2013-05-31 13:51:07 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-06-03 15:13:42 +02:00
|
|
|
set -o nounset
|
|
|
|
|
|
|
|
SCRIPTNAME=$(readlink -f $0)
|
|
|
|
DIR=$(dirname $SCRIPTNAME)
|
|
|
|
|
2013-06-03 10:36:27 +02:00
|
|
|
# Make sure that the destination directory for logs and reports exists
|
2013-06-03 15:13:42 +02:00
|
|
|
mkdir -p $DIR/build/log
|
2013-06-03 10:36:27 +02:00
|
|
|
|
2013-06-03 15:13:42 +02:00
|
|
|
mocha --reporter "xunit" --recursive "$@" . > $DIR/build/log/mocha_results.xml
|
|
|
|
mocha --reporter "cobertura" --recursive "$@" . > $DIR/build/log/mocha_coverage.xml
|
2013-05-31 13:51:07 +02:00
|
|
|
|
|
|
|
exit 0
|