Skip to content

Commit

Permalink
docs: added examples of coverage reports (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4nyll authored and bcoe committed Oct 21, 2017
1 parent af281e7 commit f5089ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -173,12 +173,14 @@ To view your coverage report:

<img width="500" src="screen.png">

you can use [any reporters that are supported by `istanbul`](https://github.com/istanbuljs/istanbuljs/tree/master/packages/istanbul-reports/lib):
You can use [any reporters that are supported by `istanbul`](https://github.com/istanbuljs/istanbuljs/tree/master/packages/istanbul-reports/lib): `clover`, `cobertura`, `html`, `json-summary`, `json`, `lcov`, `lcovonly`, `none`, `teamcity`, `text-lcov`, `text-summary`, `text`.

```bash
nyc report --reporter=lcov
```

You can find examples of the output for various reporters [here](https://istanbul.js.org/docs/advanced/instrument/alternative-reporters).

## Excluding files

You can tell nyc to exclude specific files and directories by adding
Expand Down

0 comments on commit f5089ca

Please sign in to comment.