From d0e3914e45b44f2150118ce8b0990f552df12a53 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Mon, 28 Aug 2017 12:11:54 +0100 Subject: [PATCH 1/2] Added examples of coverage reports --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6196f1a8..18a0f4194 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 also view a [list of sample output of the different reporters](https://gist.github.com/d4nyll/6056ce74808d19899de50aaa92ab44a4). + ## Excluding files You can tell nyc to exclude specific files and directories by adding From d459677095ef29e98d764afe514ee4cb2a317712 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Mon, 16 Oct 2017 10:37:38 +0100 Subject: [PATCH 2/2] Update link to point to a istanbul.js.org Points to the new Using Alternative Reporters page --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 18a0f4194..30dff0b37 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ You can use [any reporters that are supported by `istanbul`](https://github.com/ nyc report --reporter=lcov ``` -You can also view a [list of sample output of the different reporters](https://gist.github.com/d4nyll/6056ce74808d19899de50aaa92ab44a4). +You can find examples of the output for various reporters [here](https://istanbul.js.org/docs/advanced/instrument/alternative-reporters). ## Excluding files