From f5089ca4b6927f8d5ab3549104294500aa41ff65 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sat, 21 Oct 2017 20:13:55 +0100 Subject: [PATCH] docs: added examples of coverage reports (#656) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46c1f08f2..fb90014b6 100644 --- a/README.md +++ b/README.md @@ -173,12 +173,14 @@ To view your coverage report: -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