Skip to content

feat: allow merging test reports via a glob pattern - #10700

Open
abhiaagarwal wants to merge 2 commits into
vitest-dev:mainfrom
abhiaagarwal:abhi/allow-merging-reports-via-glob
Open

feat: allow merging test reports via a glob pattern#10700
abhiaagarwal wants to merge 2 commits into
vitest-dev:mainfrom
abhiaagarwal:abhi/allow-merging-reports-via-glob

Conversation

@abhiaagarwal

@abhiaagarwal abhiaagarwal commented Jul 2, 2026

Copy link
Copy Markdown

Description

Resolves #10699. This adds the functionality to use a glob pattern instead for --merge-reports CLI option. This is useful for merging coverage reports across multiple subdirectories in say, a monorepo that's not using vitest's projects option.

Note that I'm not sure this is the correct architectural boundary; ideally, collection of files happens at the interface level before it's passed to readBlobs, but I didn't want to do a massive refactor. So this is a bit hairy. I also wasn't sure whether to add a new command line argument like --glob to make the usage explicit instead of overriding the string, but given both --include and --exclude use isDynamicPattern to runtime swap between them, I figured this was the idiomatic choice.

Updates docs/docstrings and adds a single e2e test.

Signed-off-by: Abhi Agarwal <abhiaagarwal01@gmail.com>
@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 056f4a7
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a4690e0ce474800084c4ce9
😎 Deploy Preview https://deploy-preview-10700--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Abhi Agarwal <abhiaagarwal01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow merging test results via a glob pattern

1 participant