UNPKG

834 BPlain TextView Raw
1REPORTER = spec
2
3test:
4 @NODE_ENV=test ./node_modules/.bin/mocha \
5 -R $(REPORTER) -b --recursive
6
7test-unit:
8 @NODE_ENV=test ./node_modules/.bin/mocha \
9 -R $(REPORTER) -b
10
11test-acceptance:
12 @NODE_ENV=test ./node_modules/.bin/mocha \
13 -R $(REPORTER) -b test/acceptance/*.js
14
15test-mock:
16 @HDB_MOCK=1 $(MAKE) -s test
17
18test-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
24test-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
32clean:
33 @rm -rf ./coverage \
34 @rm -f hdb.js
35
36chromify:
37 @browserify -r buffer -r ./lib:hdb -o ./hdb.js
38
39.PHONY: test clean
\No newline at end of file