-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
34 lines (27 loc) · 823 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
REPORTER = spec
test:
@HAS_JOSH_K_SEAL_OF_APPROVAL=true mocha --reporter $(REPORTER)
test-rs:
@mocha --reporter $(REPORTER)
coverage:
@$(MAKE) clean
@mkdir reports
@istanbul instrument --output lib-cov lib
@HAS_JOSH_K_SEAL_OF_APPROVAL=true ISTANBUL_REPORTERS=lcov CONNECT_MONGOSTORE_COV=1 mocha -R mocha-istanbul -t 20s $(TESTS)
@mv lcov.info reports
@mv lcov-report reports
@rm -rf lib-cov
coverage-rs:
@$(MAKE) clean
@mkdir reports
@istanbul instrument --output lib-cov lib
@ISTANBUL_REPORTERS=lcov CONNECT_MONGOSTORE_COV=1 mocha -R mocha-istanbul -t 20s $(TESTS)
@mv lcov.info reports
@mv lcov-report reports
@rm -rf lib-cov
coveralls: test coverage
@cat reports/lcov.info | ./node_modules/coveralls/bin/coveralls.js
@$(MAKE) clean
clean:
@rm -rf lib-cov reports
.PHONY: test test-cov coverage