1 | REPORTER = spec
|
2 |
|
3 | all: build
|
4 |
|
5 | build:
|
6 | @./node_modules/coffee-script/bin/coffee \
|
7 | -c \
|
8 | -o lib src
|
9 |
|
10 | test-tdd:
|
11 | @./node_modules/.bin/mocha \
|
12 | --reporter $(REPORTER) \
|
13 | --ui tdd \
|
14 | test/tdd/*.js
|
15 |
|
16 | test-bdd:
|
17 | @./node_modules/.bin/mocha \
|
18 | --reporter $(REPORTER) \
|
19 | --require should \
|
20 | --ui bdd \
|
21 | test/*.js
|
22 |
|
23 | test-bdd-coffee:
|
24 | @./node_modules/.bin/mocha \
|
25 | --compilers coffee:coffee-script \
|
26 | --reporter $(REPORTER) \
|
27 | --require should \
|
28 | --ui bdd \
|
29 | test/*.coffee
|
30 |
|
31 |
|
32 | test-all: test-bdd test-bdd-coffee
|
33 |
|
34 | .PHONY: test-all
|