forked from Atlantis-Software/offshore
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 856 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 856 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
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/offshore-adapter-tests/node_modules/offshore;
ln -s "$(ROOT)" node_modules/offshore-adapter-tests/node_modules/offshore;
@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