Skip to content

LCOV code coverage report viewer. Parses lcov report files and generates HTML report grouped by directory.

License

Notifications You must be signed in to change notification settings

eugenezinovyev/lcov-viewer

Repository files navigation

build Known Vulnerabilities

LCOV viewer

Live: lcov-viewer.netlify.app

LCOV code coverage report viewer. Parses lcov report files and generates HTML report grouped by directory.

This repository provides two packages:

Package Description
npm version Istanbul grouped HTML report. Generates code coverage report grouped by directory.
npm version CLI to convert coverage in LCOV format to a grouped HTML report.

Istanbul Report

Istanbul reporter for Jest and nyc. Generates code coverage report grouped by directory.

Documentation: /packages/istanbul-report

yarn add -D @lcov-viewer/istanbul-report
npm install -D @lcov-viewer/istanbul-report

CLI

CLI to convert coverage in LCOV format to a grouped HTML report.

Documentation: /packages/cli

yarn global add @lcov-viewer/cli
npm install -g @lcov-viewer/cli

-- OR locally in your project --

yarn add -D @lcov-viewer/cli
npm install -D @lcov-viewer/cli

Local Development Setup

This repository uses Yarn workspaces. Please use Yarn as a package manager.

git clone https://github.com/eugenezinovyev/lcov-viewer.git
cd lcov-viewer
yarn
yarn start

The open http://localhost:8080/ in your browser and drop lcov.info file into the dropzone.

viewer