Skip to content

Commit 30c914a

Browse files
committed
added coverage makefile target (not yet in CI)
1 parent 6e767c3 commit 30c914a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules
22
npm-debug.log
3+
coverage
34

45
# compiled parsers
56
lib/fields.js
67
lib/query.js
7-
lib/sort.js
8+
lib/sort.js

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ release: lint build test integration-test
7070
@echo - ready to bump versions and npm release -
7171
@echo ------------------------------------------
7272

73-
.PHONY: dev lint test test-dev integration-test build build-dev
73+
coverage:
74+
$(NPM) install istanbul
75+
node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- test/*.js test/integration/*.js --reporter spec
76+
77+
.PHONY: dev lint test test-dev integration-test build build-dev

0 commit comments

Comments
 (0)