# mocha-remap-istanbul

> Istanbul code coverage reporter for Mocha supporting coverage remapping by remap-istanbul

Latest version **0.1.0** (published 2017-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install mocha-remap-istanbul
pnpm add mocha-remap-istanbul
yarn add mocha-remap-istanbul
bun add mocha-remap-istanbul
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-01-24 |
| First published | 2017-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marek Štípek |
| Maintainers | maryo |
| Keywords | mocha, istanbul, remap-istanbul, test, coverage |

## Links

- npm: https://www.npmjs.com/package/mocha-remap-istanbul
- Repository: https://github.com/maryo/mocha-remap-istanbul
- Homepage: https://github.com/maryo/mocha-remap-istanbul#readme
- Issues: https://github.com/maryo/mocha-remap-istanbul/issues
- npm.io page: https://npm.io/package/mocha-remap-istanbul

## Dependencies (1)

- [remap-istanbul](https://npm.io/package/remap-istanbul.md) 0.8.4

## 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.1.0 (latest) — 2017-01-24

## README

mocha-remap-istanbul
====================

[Mocha](http://visionmedia.github.com/mocha/) reporter to generate coverage report of [istanbul](http://gotwarlost.github.com/istanbul/) instrumented code.
Supports coverage remapping by [remap-istanbul](http://github.com/SitePen/remap-istanbul).
More than just inspired by [mocha-istanbul](http://github.com/arikon/mocha-istanbul), thanks guys.

Usage
-----
1. Install `mocha` and `mocha-remap-istanbul`
2. Instrument your code using `istanbul`
3. Make your tests to use the instrumented code
4. Run `mocha` using `mocha-istanbul` as a reporter
5. Use the environment variable `ISTANBUL_REPORTERS` to specify a comma separated list of istanbul reports with optional path. By default `ISTANBUL_REPORTERS=text-summary,html`
6. Use the environment variable `REMAP_ISTANBUL_REPORTERS` to specify a comma separated list of istanbul reports with optional path. To make this work you need to specify JSON reporter inside `ISTANBUL_REPORTERS` environment variable.

Example
-------
```javascript
process.env.ISTANBUL_REPORTERS = 'json=coverage/coverage.json';
process.env.REMAP_ISTANBUL_REPORTERS = 'text-summary,lcovonly=coverage/lcov.info,html=coverage/html';
```

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