-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (45 loc) · 1.26 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
46
47
48
49
50
51
52
53
# REPORTER = progress
# REPORTER = list
# REPORTER = spec
REPORTER = dot
test-full:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/coffeelint test/* scripts/* lib/* index.coffee \
&& ./node_modules/.bin/istanbul report
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter dot \
--ui tdd
test-spec:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter spec \
--ui tdd
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter min \
--ui tdd \
--watch
test-coverage:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/istanbul report lcovonly
test-cov:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/istanbul report
lint:
@NODE_ENV=test ./node_modules/.bin/coffeelint test/* scripts/* lib/* index.coffee
.PHONY: test test-spec test-w test-coverage test-cov test-full lint