Skip to content

sebaplaza/monomerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monomerge

Merge multiple json coverage files into one, then use nyc to create a merged report. Ideal for monorepos.

How to

npm add -D monomerge nyc
npx monomerge

This command will find all your coverage-final.json files into your packages/*/coverage/coverage-final.json folders.

All these files will be merged into .nyc_output/coverage.json file.

Now you can do whathever you want with this merged coverage file.

Generate a report

Just call nyc with your prefered Options

npx nyc report --reporter=html --reporter=lcov
# or via a nyc config file https://github.com/istanbuljs/nyc#configuration-files

About

Merge multiple json coverage files into one, then use nyc to create a merged report. Ideal for monorepos.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published