-
Notifications
You must be signed in to change notification settings - Fork 224
Add --coverage-package option
#2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with |
|
@liamappelbe thank you! 🙂 Do you have an idea of when the next |
That's up to @natebosch. From my end, I'm fine publishing this asap. |
|
I have a few more changes I'd like to get out that have been slow to land internally. I expect I should have a release ready sometime next week. |
|
sgtm, thanks! |
At the moment
dart testonly ever gathers coverage data for the current package. But sometimes part of out test coverage comes from other packages, especially in the case of monorepos.To handle this case,
flutter testhas a--coverage-packageoption, which is a multi-option ofRegExps. When this option is present, we list all the transitive packages the current package depends on, and include them in the coverage report if they match any of theRegExps.This PR adds the exact same flag to
dart test.Fixes dart-lang/sdk#60958