forked from paixaop/node-time-uuid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 776 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 776 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
TESTS = test/*.js
REPORTER = dot
test:
@echo Run make test-cov for coverage reports
@echo Mocha and Instanbul Node.js must be installed globally
@NODE_ENV=test mocha \
-R $(REPORTER) \
$(TESTS)
instrument: clean
istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib
test-cov: clean instrument
@echo Run make test for simple tests with no coverage reports
@echo Mocha and Instanbul Node.js must be installed globally
@COVERAGE=1 NODE_ENV=test mocha \
-R mocha-istanbul \
$(TESTS)
@istanbul report
@rm -rf lib-cov
@echo
@echo Open html-report/index.html file in your browser
clean:
-rm -fr lib-cov
-rm -fr covershot
-rm -fr html-report
-rm -fr coverage
-rm -fr coverage.html
.PHONY: test-cov site docs test docclean