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

22 lines (16 sloc) 0.497 kb
TESTS = $(shell find test -type f -name "*.js")
TESTTIMEOUT = 5000
REPORTER = tap
JSCOVERAGE="./node_modules/.bin/jscover"
test:
@NODE_ENV=test ./node_modules/.bin/mocha --reporter $(REPORTER) --timeout $(TESTTIMEOUT) $(TESTS)
test-cov: lib-cov
@FORWARDS_COV=1 $(MAKE) test REPORTER=dot
@FORWARDS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
@rm -rf lib-cov
@${JSCOVERAGE} lib lib-cov
clean:
@rm -rf lib-cov
@rm -f coverage.html
.PHONY: test test-cov lib-cov clean
Jump to Line
Something went wrong with that request. Please try again.