Skip to content

Commit

Permalink
code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dickey committed May 21, 2016
1 parent 9198364 commit 77932c3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.nyc_output
node_modules
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test
circle.yml
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---
machine:
node:
version: 6.2.0
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/mocha
override:
- MOCHA_FILE=$CIRCLE_TEST_REPORTS/mocha/results.xml nyc mocha test -R mocha-junit-reporter
- standard
post:
- nyc report --reporter=text-lcov > coverage.lcov && bash <(curl -s https://codecov.io/bash)
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Heroku CLI plugin to fork an existing app into a new app.",
"main": "index.js",
"scripts": {
"test": "mocha && jshint .",
"test": "nyc mocha && jshint .",
"preversion": "npm test",
"postversion": "npm publish && git push && git push --tags"
},
Expand All @@ -30,6 +30,8 @@
"chai": "3.5.0",
"jshint": "*",
"mocha": "2.4.5",
"nock": "8.0.0"
"mocha-junit-reporter": "1.11.1",
"nock": "8.0.0",
"nyc": "6.4.4"
}
}

0 comments on commit 77932c3

Please sign in to comment.