Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 476 Bytes
SRC = $(shell find lib -type f -name "*.js")
TESTS = test/*.js
TESTTIMEOUT = 10000
VERSION = $(shell date +%Y%m%d%H%M%S)
test:
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter spec --timeout $(TESTTIMEOUT) $(TESTS)
watch:
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
-w --reporter spec --timeout $(TESTTIMEOUT) $(TESTS)
cov:
@JSCOV=1 ./node_modules/mocha/bin/mocha \
--reporter html-cov --timeout $(TESTTIMEOUT) $(TESTS) > coverage.html
.PHONY: test