-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 715 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (31 loc) · 715 Bytes
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
MOCHA_OPTS= --check-leaks
REPORTER = dot
#@NODE_ENV=test ./node_modules/.bin/mocha \
check: test
#test: test-unit test-acceptance
test: test-unit
test-unit:
@NODE_ENV=test mocha \
--timeout 30000 \
--reporter $(REPORTER) \
$(MOCHA_OPTS)
test-acceptance:
@NODE_ENV=test mocha \
--reporter $(REPORTER) \
--bail \
test/acceptance/*.js
test-cov: lib-cov
@APP_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
lib-cov:
@jscoverage lib lib-cov
clean:
rm -f coverage.html
rm -fr lib-cov
#Run test continuously in the background
test-w:
@NODE_ENV=test mocha \
--reporter $(REPORTER) \
--growl \
--watch
#.PHONY: test test-unit test-acceptance test-w benchmark clean
.PHONY: test