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 29 lines (23 sloc) 0.651 kb
#!/bin/sh
if [ ! -d tools/jscoverage ]; then
mkdir -p tools/jscoverage
fi
if [ ! -x tools/jscoverage/jscoverage ]; then
echo "Installing JSCoverage for Node.js to tools/jscoverage."
rm -rf tools/jscoverage/*
git clone --quiet https://github.com/visionmedia/node-jscoverage.git tools/jscoverage
cd tools/jscoverage
./configure
make
cd ../..
fi
rm -rf lib-raw
cp -R lib lib-raw
rm -rf lib
tools/jscoverage/jscoverage lib-raw lib
./node_modules/.bin/vows --cover-html test/*.js
rm -rf lib
mv lib-raw lib
echo "Coverage report written to coverage.html."
# Open the report on OS X.
hash open 2>&- && open coverage.html
Jump to Line
Something went wrong with that request. Please try again.