# travis-cov

> Mocha/blanket coverage reporter for travis-ci.

Latest version **0.2.5** (published 2014-01-26) · 0 weekly downloads

## Install

```sh
npm install travis-cov
pnpm add travis-cov
yarn add travis-cov
bun add travis-cov
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2014-01-26 |
| First published | 2012-11-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Seville |
| Maintainers | alexseville |
| Keywords | travis, mocha, blanket, test, coverage |

## Links

- npm: https://www.npmjs.com/package/travis-cov
- Repository: https://github.com/alex-seville/travis-cov
- Issues: https://github.com/alex-seville/travis-cov/issues
- npm.io page: https://npm.io/package/travis-cov

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.2.5 (latest) — 2014-01-26
- 0.2.4 — 2013-01-07
- 0.2.3 — 2012-12-07
- 0.2.2 — 2012-11-29
- 0.2.1 — 2012-11-29
- 0.2.0 — 2012-11-25
- 0.1.9 — 2012-11-24
- 0.1.8 — 2012-11-24
- 0.1.7 — 2012-11-24
- 0.1.6 — 2012-11-24
- 0.1.5 — 2012-11-24
- 0.1.4 — 2012-11-20
- 0.1.3 — 2012-11-20
- 0.1.2 — 2012-11-19
- 0.1.0 — 2012-11-18
- … 4 more at https://npm.io/package/travis-cov/versions

## README

## travis-cov

A coverage reporter for [Mocha](http://visionmedia.github.com/mocha/)/[Blanket](http://blanketjs.org/) that will fail a [travis-ci](https://travis-ci.org/) 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](https://github.com/alex-seville/blanket/blob/master/package.json#L42) 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.

---
_Source: https://npm.io/package/travis-cov · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
