forked from hapijs/hapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·33 lines (24 loc) · 770 Bytes
/
Makefile
File metadata and controls
executable file
·33 lines (24 loc) · 770 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
REPORTER = dot
test:
@#lib-cov
@NODE_ENV=test ./node_modules/.bin/mocha --recursive --reporter $(REPORTER) --ignore-leaks --timeout 3000
@#$(MAKE) rm-lib-cov
tests: test
lib-cov: rm-lib-cov
@jscoverage lib lib-cov
rm-lib-cov:
@rm -rf ./lib-cov/
test-cov: lib-cov
@$(MAKE) test TEST_COV=1 REPORTER=json-cov > coverage.json
@$(MAKE) rm-lib-cov
test-cov-html: lib-cov
@$(MAKE) test TEST_COV=1 REPORTER=html-cov > coverage.html
@$(MAKE) rm-lib-cov
tap: lib-cov
@NODE_ENV=test ./node_modules/.bin/mocha -R tap > results.tap
@$(MAKE) rm-lib-cov
unit:
@#lib-cov
@NODE_ENV=test ./node_modules/.bin/mocha --recursive -R xunit --ignore-leaks > results.xml --timeout 3000
@#$(MAKE) rm-lib-cov
.PHONY: test tap test-cov test-cov-html unit lib-cov rm-lib-cov