-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 700 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 700 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
TESTS = test/test.js
REPORTER = spec
TIMEOUT = 10000
MOCHA_OPTS =
ISTANBUL = ./node_modules/.bin/istanbul
MOCHA = ./node_modules/.bin/_mocha
clean:
@rm -rf build coverage node_modules
install-test:
@NODE_ENV=test npm install --registry=http://r.cnpmjs.org
test: install-test
@NODE_ENV=test $(MOCHA) \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
test-cov: install-test
@$(ISTANBUL) cover --report html $(MOCHA) -- -R $(REPORTER) $(TESTS)
test-all: test-cov
autod: install-test
@./node_modules/.bin/autod -w -e components,build
@$(MAKE) install-test
contributors: install-test
@./node_modules/.bin/contributors -f plain -o AUTHORS
.PHONY: clean test