-
Notifications
You must be signed in to change notification settings - Fork 63
/
Makefile
24 lines (18 loc) · 856 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
REPORTER = spec
test:
@$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/mocha --timeout 50000 --exit -b --reporter $(REPORTER)
lint:
./node_modules/.bin/eslint ./test ./swagger ./services ./routes ./helpers ./controllers ./config ./app.js
test-coverage-1:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report lcovonly test/tests.js -- -R spec
test-coveralls:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose
test-coveralls-1:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report lcovonly test/tests.js -- -R spec && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose
.PHONY: test