-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 893 Bytes
/
Makefile
File metadata and controls
48 lines (39 loc) · 893 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
TESTS = test/*.test.js
REPORTER = spec
TIMEOUT = 15000
MOCHA_OPTS =
install:
@npm install
jshint:
@./node_modules/.bin/jshint .
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--bail \
$(MOCHA_OPTS) \
$(TESTS)
test-cov cov:
@NODE_ENV=test node \
node_modules/.bin/istanbul cover \
node_modules/.bin/_mocha \
-- -u exports \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
test-all: jshint test
test-travis:
@NODE_ENV=test node \
node_modules/.bin/istanbul cover \
node_modules/.bin/_mocha --report lcovonly \
-- --check-leaks \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)
contributors:
@./node_modules/.bin/contributors -f plain -o AUTHORS
autod:
@./node_modules/.bin/autod -w -e examples -k zookeeper-watcher --prefix "~"
.PHONY: test