occaecatidicta
Version:
22 lines (16 loc) • 393 B
Plain Text
SRC = $(shell find lib -type f -name "*.js")
TESTS = test/*
REPORTER = spec
TIMEOUT = 5000
test:
@./node_modules/.bin/mocha \
--reporter $(REPORTER) --timeout $(TIMEOUT) $(TESTS)
test-cov: lib-cov
@JSCOV=1 $(MAKE) test REPORTER=html-cov > coverage.html && open coverage.html
lib-cov:
@rm -rf ./$@
@jscoverage lib $@
clean:
rm -rf lib-cov
rm -f coverage.html