-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
45 lines (37 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
REPORTER = nyan
INTEGRATIONAL_TESTS = $(shell find tests/integrational -name "*.coffee")
UNIT_TESTS = $(shell find tests/unit -name "*.coffee")
test: test-integrational test-unit
test-integrational:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd \
--reporter $(REPORTER) \
--compilers coffee:coffee-script/register \
--timeout 10000 \
$(INTEGRATIONAL_TESTS)
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 \
--timeout 3000 \
$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