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 | --require should \
|
14 | --require sinon \
|
15 | --ui tdd \
|
16 | test/tdd/*.js
|
17 |
|
18 | test-bdd:
|
19 | @./node_modules/.bin/mocha \
|
20 | --reporter $(REPORTER) \
|
21 | --require should \
|
22 | --ui bdd \
|
23 | test/*.js
|
24 |
|
25 | test-bdd-coffee:
|
26 | @./node_modules/.bin/mocha \
|
27 | --compilers coffee:coffee-script \
|
28 | --reporter $(REPORTER) \
|
29 | --require should \
|
30 | --require coffee-script/register \
|
31 | --ui bdd \
|
32 | test/*.coffee
|
33 |
|
34 |
|
35 | test-all: test-tdd test-bdd test-bdd-coffee
|
36 |
|
37 | .PHONY: test-all
|