-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
44 lines (31 loc) · 845 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
38
39
40
41
42
43
44
REPORTER = spec
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER)
test-d:
@NODE_ENV=test ./node_modules/.bin/mocha \
--debug \
--reporter $(REPORTER)
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha \
--growl \
--watch \
--reporter $(REPORTER)
# test-acceptance:
# @NODE_ENV=test ./node_modules/.bin/mocha \
# --bail \
# test/acceptance/*.js
test-cov: server-cov
@SERVER_COV=1 $(MAKE) test REPORTER=html-cov > public/coverage.html
app-cov:
@jscoverage server server-cov
clean:
rm -f coverage.html
rm -fr server-cov
.PHONY: test test-w test-d clean
# Best practice testing
# add acceptance tests to test/acceptance
# rename test to test-unit and add test: test-unit test-acceptance
# benchmark:
# @./support/bench
# .PHONY: test test-unit test-acceptance benchmark clean