Skip to content

Commit

Permalink
Added coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Dec 1, 2015
1 parent 050bff4 commit 6c4278c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
doc
coverage
*.log
*.swp
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
PATH := ./node_modules/.bin:${PATH}

NPM_PACKAGE := $(shell node -e 'console.log(require("./package.json").name)')
NPM_VERSION := $(shell node -e 'console.log(require("./package.json").version)')

Expand All @@ -20,14 +18,15 @@ help:


lint:
eslint --reset .
node_modules/.bin/eslint --reset .


test: lint
mocha
node_modules/.bin/mocha

test-all: lint
LINKS_CHECK=all mocha
coverage:
rm -rf coverage
node_modules/.bin/istanbul cover node_modules/.bin/_mocha


publish:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"devDependencies": {
"eslint": "0.24.0",
"eslint-plugin-nodeca": "^1.0.3",
"istanbul": "^0.4.1",
"mocha": "^2.2.5"
}
}

0 comments on commit 6c4278c

Please sign in to comment.