-
Notifications
You must be signed in to change notification settings - Fork 109
/
Makefile
46 lines (36 loc) · 948 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
35
36
37
38
39
40
41
42
43
44
45
46
REPORTER ?= list
SRC = $(shell find index.js lib -name "*.js" -type f | sort)
TESTSRC = $(shell find test -name "*.js" -type f | sort)
default: test
lint:
npm run lint
test-unit: lint
@node node_modules/.bin/mocha \
--reporter $(REPORTER) \
--ui bdd \
test/*-test.js
test-integration: lint
@node node_modules/.bin/mocha \
--reporter spec \
--ui bdd \
test/integration/*-test.js
test-cov: lint
@node node_modules/.bin/mocha \
-r jscoverage \
$(TESTSRC)
test-cov-html: lint
@node node_modules/.bin/mocha \
-r jscoverage \
--covout=html \
$(TESTSRC)
coverage: lint
@node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha $(TESTSRC)
@node_modules/.bin/istanbul check-coverage
test-io: lint
@node node_modules/.bin/mocha \
--reporter $(REPORTER) \
--ui bdd \
--grep "stream data after handling retryable error" \
test/*-test.js
test: test-unit test-integration
.PHONY: test test-cov test-cov-html