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
|
|
|
|
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 = "."
|
|
|
|
|
|
|
|
|
|
test-mocha:
|
2012-10-12 13:58:42 +00:00
|
|
|
@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS)
|
|
|
|
|
#@NODE_ENV=test $(MOCHA) --grep "$(g)" $(MOCHA_TESTS) | tee $(OUT_FILE)
|
2012-09-23 01:04:34 +00:00
|
|
|
|
2012-10-12 13:58:42 +00:00
|
|
|
test-casper:
|
|
|
|
|
casperjs test ./test/rest.casper.coffee
|
2012-09-23 01:04:34 +00:00
|
|
|
|
|
|
|
|
test!:
|
|
|
|
|
@perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh
|