|
3 | 3 |
|
4 | 4 | # LCOV viewer |
5 | 5 |
|
| 6 | +Live: **[lcov-viewer.netlify.app](https://lcov-viewer.netlify.app/)** |
| 7 | + |
6 | 8 | LCOV code coverage report viewer. Parses lcov report files and generates HTML report grouped by directory. |
7 | 9 |
|
8 | | -## Installation |
| 10 | +This repository provides two packages: |
9 | 11 |
|
10 | | -This repository uses Yarn workspaces. Please use Yarn as a package manager. |
| 12 | +| Package | Description | |
| 13 | +|-------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| |
| 14 | +| [](https://www.npmjs.com/package/@lcov-viewer/istanbul-report) | Istanbul grouped HTML report. Generates code coverage report grouped by directory. | |
| 15 | +| [](https://www.npmjs.com/package/@lcov-viewer/cli) | CLI to convert coverage in LCOV format to a grouped HTML report. | |
11 | 16 |
|
12 | | -``` |
13 | | -> git clone https://github.com/eugenezinovyev/lcov-viewer.git |
14 | | -> cd lcov-viewer |
15 | | -> yarn |
16 | | -> cd packages/app |
17 | | -> yarn start |
| 17 | +## Istanbul Report |
| 18 | + |
| 19 | +Istanbul reporter for Jest and nyc. Generates code coverage report grouped by directory. |
| 20 | + |
| 21 | +Documentation: [/packages/istanbul-report](/packages/istanbul-report) |
| 22 | + |
| 23 | +```shell |
| 24 | +yarn add -D @lcov-viewer/istanbul-report |
| 25 | +npm install -D @lcov-viewer/istanbul-report |
18 | 26 | ``` |
19 | 27 |
|
20 | | -## Istanbul report |
| 28 | +## CLI |
21 | 29 |
|
22 | | -The repository provides Istanbul report generator. |
| 30 | +CLI to convert coverage in LCOV format to a grouped HTML report. |
| 31 | + |
| 32 | +Documentation: [/packages/cli](/packages/cli) |
| 33 | + |
| 34 | +```shell |
| 35 | +yarn global add @lcov-viewer/cli |
| 36 | +npm install -g @lcov-viewer/cli |
23 | 37 | ``` |
24 | | -yarn add -D @lcov-viewer/istanbul-report |
| 38 | + |
| 39 | +-- OR locally in your project -- |
| 40 | + |
| 41 | +```shell |
| 42 | +yarn add -D @lcov-viewer/cli |
| 43 | +npm install -D @lcov-viewer/cli |
25 | 44 | ``` |
26 | | -Check documentation [here](/packages/istanbul-report). |
27 | 45 |
|
28 | | -## Live Demo |
| 46 | +## Local Development Setup |
29 | 47 |
|
30 | | -Check live demo [here](https://lcov-viewer.netlify.app/). |
| 48 | +This repository uses Yarn workspaces. Please use Yarn as a package manager. |
31 | 49 |
|
32 | | -## Demo |
| 50 | +```shell |
| 51 | +git clone https://github.com/eugenezinovyev/lcov-viewer.git |
| 52 | +cd lcov-viewer |
| 53 | +yarn |
| 54 | +yarn start |
| 55 | +``` |
33 | 56 |
|
34 | | -Open LCOV viewer in your browser and drop `lcov.info` file into the dropzone. |
| 57 | +The open http://localhost:8080/ in your browser and drop `lcov.info` file into the dropzone. |
35 | 58 |
|
36 | 59 |  |
0 commit comments