Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (22 sloc) 0.965 kb
#!/bin/sh
coverage_type=${1:-unit}
istanbul=./node_modules/.bin/istanbul
if [ -x $istanbul ]; then
if [ $coverage_type = "unit" ]; then
echo "Running unit test coverage with Istanbul at $istanbul"
$istanbul cover \
--report html --dir build_docs/coverage/unit \
./node_modules/.bin/vows -- test/unit/*.js
echo "Coverage report written to build_docs/coverage/unit/index.html"
hash open 2>&- && open build_docs/coverage/unit/index.html
else
echo "Running functional test coverage with Istanbul at $istanbul"
$istanbul cover \
--report html --dir build_docs/coverage/functional \
./node_modules/.bin/vows -- test/functional/*.js
echo "Coverage report written to build_docs/coverage/functional/index.html"
hash open 2>&- && open build_docs/coverage/functional/index.html
fi
else
echo "Istanbul not found. Please run npm install first."
fi
Jump to Line
Something went wrong with that request. Please try again.