-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
feat: coverageIssues and PRs related to the coverage featureIssues and PRs related to the coverage featurefeat: workspaceIssues and PRs related to the workspace featureIssues and PRs related to the workspace featurep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Clear and concise description of the problem
Currently running vitest run --coverage --project <project_a>
will result in all other projects reporting no coverage.
Suggested solution
Report only the coverage of the filtered projects when using the --project
flag.
Alternative
By default, set the all
flag to false
if using --project
(not quite the same but close)
Additional context
Getting accurate project coverage while testing in a monorepo is hard and you have to resort to npm run cover -w <project_a>
which generates a coverage
folder that isn't ignored by default at the project level.
Closest I have gotten is using the all:false
flag which still doesn't quite do what I'm looking for
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
gtbuchanan
Metadata
Metadata
Assignees
Labels
feat: coverageIssues and PRs related to the coverage featureIssues and PRs related to the coverage featurefeat: workspaceIssues and PRs related to the workspace featureIssues and PRs related to the workspace featurep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)