Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 497 Bytes
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