Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmark committed Jul 28, 2016
1 parent 0ce7c59 commit 8f7f72a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_js:
- 6
- 5
script:
- codecov
- make coverage
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ build: node_modules clean
node_modules:
npm install

.PHONY: coverage
coverage:
npm run coverage
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

.PHONY: eslint
eslint:
node_modules/.bin/eslint .
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@
"babel-cli": "^6.10.1",
"babel-preset-es2015": "^6.9.0",
"chai": "^3.5.0",
"codecov": "^1.0.1",
"coveralls": "^2.11.12",
"eslint": "^3.1.0",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.10.3",
"eslint-plugin-jsx-a11y": "^2.0.1",
"eslint-plugin-react": "^5.2.2",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^2.5.3",
"mocha-lcov-reporter": "^1.2.0",
"sinon": "^1.17.4"
},
"scripts": {
"start": "bin/wafflebot",
"test": "NODE_PATH=. node_modules/.bin/mocha --require babel-core/register tests/**.js tests/**/*.js",
"test:watch": "NODE_PATH=. node_modules/.bin/mocha --require babel-core/register -w tests/**.js tests/**/*.js",
"coverage": "NODE_PATH=. ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- tests/**.js tests/**/*.js --compilers js:babel-register",
"coverage": "NODE_PATH=. ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec tests/**.js tests/**/*.js --compilers js:babel-register",
"isparta": "NODE_PATH=. babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- tests/**.js tests/**/*.js"
},
"repository": {
Expand Down

0 comments on commit 8f7f72a

Please sign in to comment.