mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Lots of stuff
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user