Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.516 kb
.PHONY: test coverage docs
all: docs coverage
test:
mocha -R spec -u tdd test.js
coverage:
mkdir -p lib
mkdir -p lib-cov
ln -s ../index.js lib/index.js
jscoverage lib lib-cov
TSM_COV=1 mocha -R html-cov -u tdd test.js > coverage.html
rm -rf lib
rm -rf lib-cov
# quickfix for this strange problem...
sed -i'bak' 's/>/>/g' coverage.html
sed -i'bak' 's/&lt;/</g' coverage.html
sed -i'bak' 's/&quot;/"/g' coverage.html
rm coverage.htmlbak
mkdir -p docs
mv coverage.html docs/
docs:
docco index.js
Jump to Line
Something went wrong with that request. Please try again.