1 | REPORTER = spec
|
2 |
|
3 | test:
|
4 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
5 | -R $(REPORTER) -b --recursive
|
6 |
|
7 | test-unit:
|
8 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
9 | -R $(REPORTER) -b
|
10 |
|
11 | test-acceptance:
|
12 | @NODE_ENV=test ./node_modules/.bin/mocha \
|
13 | -R $(REPORTER) -b test/acceptance/*.js
|
14 |
|
15 | test-mock:
|
16 | @HDB_MOCK=1 $(MAKE) -s test
|
17 |
|
18 | test-lcov:
|
19 | @NODE_ENV=test ./node_modules/.bin/istanbul cover \
|
20 | --report lcov \
|
21 | ./node_modules/mocha/bin/_mocha -- \
|
22 | -R spec -b --recursive
|
23 |
|
24 | test-coveralls:
|
25 | @NODE_ENV=test ./node_modules/.bin/istanbul cover \
|
26 | --report lcovonly \
|
27 | ./node_modules/mocha/bin/_mocha -- \
|
28 | -R spec -b --recursive \
|
29 | && cat ./coverage/lcov.info | node ./bin/coveralls.js \
|
30 | && rm -rf ./coverage
|
31 |
|
32 | clean:
|
33 | @rm -rf ./coverage \
|
34 | @rm -f hdb.js
|
35 |
|
36 | chromify:
|
37 | @browserify -r buffer -r ./lib:hdb -o ./hdb.js
|
38 |
|
39 | .PHONY: test clean |
\ | No newline at end of file |