lerna-lcov-aggregate

Aggregates multiple LCOV results into one in Lerna monorepo.

Usage no npm install needed!

<script type="module">
  import lernaLcovAggregate from 'https://cdn.skypack.dev/lerna-lcov-aggregate';
</script>

README

LCOV code coverage aggregator for Lerna monorepos

Utility which combines LCOV test coverage reports from multiple NPM packages inside an Lerna monorepo into single file, which can be submitted to code coverage services such as Coveralls.

Installation

$ npm install --save-dev lerna-lcov-aggregate

Usage

The package provides an executable called lerna-lcov-aggregate. When it's run at the root directory of Lerna monorepo, it will go through all the packages defined in lerna.json configuration file and collect all coverage/lcov.info files from them. It will then combine them into single file (with some modifications done with file paths in the lcov.info files) and create a single coverage report file coverage/lcov.info at the root directory of the repository. This file can then be submitted to an coverage service or tool that processes LCOV files.