Skip to content

How I can merge two different coverage folder? #3744

Answered by AriPerkkio
AgarkovRoman asked this question in Q&A
Discussion options

You must be logged in to vote

If the packages are in a monorepo you should use Vitest's workspaces. It will merge the coverage reports out-of-the-box for whole project.

If these are completely separate projects and for some reason you want to merge the coverage reports, you could use nyc for it, e.g. nyc merge: https://github.com/istanbuljs/nyc#combining-reports-from-multiple-runs

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@AriPerkkio
Comment options

@fkrauthan
Comment options

@alanskovrlj
Comment options

@AriPerkkio
Comment options

@alanskovrlj
Comment options

Answer selected by AgarkovRoman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants