forked from thinkjs/thinkjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 690 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 690 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
TESTS = test/
REPORTER = spec
TIMEOUT = 10000
MOCHA_OPTS = --recursive
ISTANBUL = ./node_modules/.bin/istanbul
MOCHA = ./node_modules/mocha/bin/_mocha
install:
@npm install
test: install
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
@NODE_ENV=test ./node_modules/jshint/bin/jshint lib/
test-cov:
@$(ISTANBUL) cover --report html $(MOCHA) -- -t $(TIMEOUT) --recursive -R spec $(TESTS)
test-travis:
@NODE_ENV=test ./node_modules/jshint/bin/jshint lib/
@$(ISTANBUL) cover --report lcov $(MOCHA) -- -t $(TIMEOUT) --recursive -R spec $(TESTS)
test-all: test test-cov
.PHONY: test-cov test test-all