BattleSim/Makefile

19 lines
373 B
Makefile
Raw Permalink Normal View History

2016-02-01 22:19:30 +00:00
HTMLDOCS = $(DOCS:.md=.html)
REPORTER = spec
test:
NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) --require should --compilers coffee:coffee-script/register
test-cov: lib-cov
NUGGETBRIDGE_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
rm -rf server-cov
coffee -c server
jscoverage server server-cov
rm server/*.js
.PHONY: test