3.2.0 • Published 9 months ago

coverage-fusion v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

coverage-fusion

npm version License GitHub Stars

coverage-fusion consolidates monorepo code coverage report.

It merges code coverage reports from multiple projects into a single report. This allows for one coverage badge to cover the entire monorepo or one badge to coverage each team. A coverage report badge can be a helpful KPI.

Usage

Beforehand, use a test runner (such as Jest or similar) to generate **/**/coverage/coverage-final.json coverage reports for each project.

Now that there are multiple coverage report files, simply run the script to merge the coverage reports from all projects into a single report:

npx coverage-fusion

That's it! The consolidated code coverage reports are generated to cwd ./coverage.

Reports can be reviewed manually or integrated into CI.