forked from balderdashy/waterline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 860 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
ROOT=$(shell pwd)
test: test-unit test-integration
test-unit:
@echo "\nRunning unit tests..."
@NODE_ENV=test mocha test/integration test/structure test/support test/unit --recursive
test-integration:
@echo "\nRunning integration tests..."
rm -rf node_modules/waterline-adapter-tests/node_modules/waterline;
ln -s "$(ROOT)" node_modules/waterline-adapter-tests/node_modules/waterline;
@NODE_ENV=test node test/adapter/runner.js
coverage:
@echo "\n\nRunning coverage report..."
rm -rf coverage
@NODE_ENV=test ./node_modules/istanbul/lib/cli.js cover --report none --dir coverage/core ./node_modules/.bin/_mocha \
test/integration test/structure test/support test/unit -- --recursive
./node_modules/istanbul/lib/cli.js cover --report none --dir coverage/adapter test/adapter/runner.js
./node_modules/istanbul/lib/cli.js report
.PHONY: coverage