-
Notifications
You must be signed in to change notification settings - Fork 50
/
Makefile
37 lines (30 loc) · 884 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
REPORTER = nyan
INTEGRATIONAL_TESTS = $(shell find tests/integrational -name "*.coffee")
UNIT_TESTS = $(shell find tests/unit -name "*.coffee")
test: test-unit
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd \
--reporter $(REPORTER) \
--compilers coffee:coffee-script/register \
--timeout 10000 \
$(UNIT_TESTS)
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd -b \
--reporter $(REPORTER) \
--compilers coffee:coffee-script/register \
--watch \
--growl \
$(INTEGRATIONAL_TESTS)
test-one:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd -b \
--reporter $(REPORTER) \
--compilers coffee:coffee-script/register \
$f
test-one-w:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd -b \
--reporter $(REPORTER) \
--compilers coffee:coffee-script/register \
--watch \
--growl \
$f
.PHONY: test-integrational test-w test-unit test-one