Skip to content

Commit

Permalink
Merge pull request #367 from SBoudrias/coverage
Browse files Browse the repository at this point in the history
Add test coverage
  • Loading branch information
sindresorhus committed Oct 4, 2013
2 parents 3ab6118 + a9dd5e9 commit af44e50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ node_js:
- '0.10'
- '0.8'
before_script:
npm install -g bower
npm install -g bower mocha istanbul
env:
- DEBUG="generators:*"
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "git://github.com/yeoman/generator.git"
},
"scripts": {
"test": "mocha test/*.js --reporter list --timeout 100000",
"test": "istanbul cover _mocha --report lcovonly -- test/*.js --reporter list --timeout 100000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"legacy": "mocha test/legacy.js --reporter dot --timeout 100000",
"test-generator": "mocha test/generators/*.js --reporter spec --timeout 100000"
},
Expand Down Expand Up @@ -49,6 +49,9 @@
"mocha": "~1.12.0",
"proxyquire": "~0.4.0",
"sinon": "~1.7.3",
"markdox": "~0.1.2"
"markdox": "~0.1.2",
"coveralls": "~2.3.0",
"mocha-lcov-reporter": "0.0.1",
"istanbul": "~0.1.44"
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generator [![Build Status](https://secure.travis-ci.org/yeoman/generator.png?branch=master)](http://travis-ci.org/yeoman/generator)
# Generator [![Build Status](https://secure.travis-ci.org/yeoman/generator.png?branch=master)](http://travis-ci.org/yeoman/generator) [![Coverage Status](https://coveralls.io/repos/yeoman/generator/badge.png)](https://coveralls.io/r/yeoman/generator)

A Rails-inspired generator system that provides scaffolding for your apps.

Expand Down

0 comments on commit af44e50

Please sign in to comment.