-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 971 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 971 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
MOCHA = ./node_modules/.bin/mocha
MOCHA_REPORTER = spec
C8 = ./node_modules/.bin/c8
C8_REPORTERS = --reporter=text --reporter=html --reporter=lcov
test:
@NODE_ENV=test $(MOCHA) \
-R $(MOCHA_REPORTER) -b --recursive
test-unit:
@NODE_ENV=test $(MOCHA) \
-R $(MOCHA_REPORTER) -b
test-acceptance:
@NODE_ENV=test $(MOCHA) \
-R $(MOCHA_REPORTER) -b test/acceptance/*.js
test-coverage:
@NODE_ENV=test $(C8) $(C8_REPORTERS) $(MOCHA) \
-R $(MOCHA_REPORTER) -b --recursive
test-unit-coverage:
@NODE_ENV=test $(C8) $(C8_REPORTERS) $(MOCHA) \
-R $(MOCHA_REPORTER) -b
test-acceptance-coverage:
@NODE_ENV=test $(C8) $(C8_REPORTERS) $(MOCHA) \
-R $(MOCHA_REPORTER) -b test/acceptance/*.js
test-mock:
@HDB_MOCK=1 $(MAKE) -s test
clean:
@rm -rf ./coverage \
@rm -f hdb.js
chromify:
@browserify -r buffer -r ./lib:hdb -o ./hdb.js
.PHONY: test test-unit test-acceptance test-coverage test-unit-coverage test-acceptance-coverage clean