1
0
mirror of /repos/Prototyper.git synced 2026-02-27 16:12:00 +01:00

added groc and coverage

This commit is contained in:
Aiko Mastboom
2013-05-12 12:36:21 +02:00
parent 1d2116e43e
commit 3f7c13571b
6 changed files with 56 additions and 5 deletions

22
coverit Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
current_dir=$(cd $(dirname $0) && pwd)
base_dir=${current_dir}
cd ${base_dir}
if [ ! -x ./opt/node-jscoverage/jscoverage ]; then
mkdir -p ./opt
cd ./opt
git clone git://github.com/visionmedia/node-jscoverage.git
cd node-jscoverage/
./configure && make
cd ${base_dir}
fi
if [ ! -x ./node_modules/.bin/mocha ]; then
npm install mocha
fi
./opt/node-jscoverage/jscoverage lib lib-cov
PROTOTYPER_COV=1 ./node_modules/.bin/mocha -R html-cov > public/coverage.html
rm -rf lib-cov