2012-04-27 02:19:31 +00:00
|
|
|
compile:
|
|
|
|
|
./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src
|
2012-09-15 19:06:51 +00:00
|
|
|
|
|
|
|
|
test-casper:
|
|
|
|
|
casperjs test ./test
|
2012-09-23 01:04:34 +00:00
|
|
|
|
|
|
|
|
MOCHA_TESTS := $(shell find test/ -name '*.mocha.*')
|
|
|
|
|
MOCHA = mocha --compilers coffee:coffee-script
|
|
|
|
|
OUT_FILE = "test-output.tmp"
|
|
|
|
|
|
|
|
|
|
g = "."
|
|
|
|
|
|
|
|
|
|
#@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS) | tee $(OUT_FILE)
|
|
|
|
|
test-mocha:
|
2012-09-24 15:28:01 +00:00
|
|
|
@NODE_ENV=test $(MOCHA) ./test/user.mocha.coffee
|
2012-09-23 01:04:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
test: test-mocha
|
|
|
|
|
test!:
|
|
|
|
|
@perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh
|