UNPKG

393 BPlain TextView Raw
1SRC = $(shell find lib -type f -name "*.js")
2TESTS = test/*
3REPORTER = spec
4TIMEOUT = 5000
5
6test:
7 @./node_modules/.bin/mocha \
8 --reporter $(REPORTER) --timeout $(TIMEOUT) $(TESTS)
9
10test-cov: lib-cov
11 @JSCOV=1 $(MAKE) test REPORTER=html-cov > coverage.html && open coverage.html
12
13lib-cov:
14 @rm -rf ./$@
15 @jscoverage lib $@
16
17clean:
18 rm -rf lib-cov
19 rm -f coverage.html
20
21.PHONY: test test-cov