travis-cov
Mocha coverage reporter for travis
Last updated 12 years ago .
Repository · Original npm · Tarball · package.json
$ npm install travis-cov 
SYNC missed versions from official npm registry.

travis-cov

A coverage reporter for Mocha/Blanket that will fail a travis-ci build when the coverage threshold is too low.

Threshold is specified in the package.json file of the consuming project.

Add the key `"travis-cov" to the "config" key in your package.json file. Under that key you can add any of the following properties:

threshold: <number>, global: <boolean>, local: <boolean>

See Blanket.js's package.json as an example.

###usage

  1. npm install travis-cov
  2. Use a reporter argument, mocha -R travis-cov
  3. Change scripts.test in your package.json file to use mocha -R travis-cov
  4. Add travis-cov to the package.json file in the config section. Add whichever keys you want (see above).
  5. Set up your project with travis-ci
  6. Commit, if your tests pass and the code coverage is above the threshold the build will pass, otherwise it will fail.

Current Tags

  • 0.2.5                                ...           latest (11 years ago)

19 Versions

  • 0.2.5                                ...           11 years ago
  • 0.2.4                                ...           12 years ago
  • 0.2.3                                ...           12 years ago
  • 0.2.2                                ...           12 years ago
  • 0.2.1                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.9                                ...           12 years ago
  • 0.1.8                                ...           12 years ago
  • 0.1.7                                ...           12 years ago
  • 0.1.6                                ...           12 years ago
  • 0.1.5                                ...           12 years ago
  • 0.1.4                                ...           12 years ago
  • 0.1.3                                ...           12 years ago
  • 0.1.2                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
  • 0.0.9                                ...           12 years ago
  • 0.0.8                                ...           12 years ago
  • 0.0.7                                ...           12 years ago
  • 0.0.6                                ...           12 years ago
Maintainers (1)
Downloads
Total 17
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE