You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'pub run test -p chrome' and '--coverage=coverage' hangs #471
Hey, for some reason, when running pub run test on the chrome platform and --coverage=coverage, the command hangs and never finishes.
All the tests are passing, I see the message All tests passed!, but the command never exits unless I do ctrl C manually, not sure what's happening or if it's related to pausing isolations or running on a JS environment.
Fix an issue where coverage collection could hang on Chrome.
I could not reproduce the hang with a current package:test (my one local reproduction turned out to be a flatpak-sandboxed Chrome that survives the browser-close kill — an environment issue, reproducible with plain dart test -p chrome and unrelated to coverage).
Worth noting for anyone who finds this issue later: test_with_coverage -p chrome delegates to dart test --coverage, so a hang of this kind would live in package:test's browser platform rather than in package:coverage.
Unless someone can still reproduce it on a recent package:test, this looks closeable.
Activity
kevmoo commentedon Aug 13, 2026
While working on web coverage support (#2448) I went looking for this hang and believe it was fixed upstream in
package:testalmost five years ago.package:testCHANGELOG, 1.16.8 (2021-03-12):I could not reproduce the hang with a current
package:test(my one local reproduction turned out to be a flatpak-sandboxed Chrome that survives the browser-close kill — an environment issue, reproducible with plaindart test -p chromeand unrelated to coverage).Worth noting for anyone who finds this issue later:
test_with_coverage -p chromedelegates todart test --coverage, so a hang of this kind would live inpackage:test's browser platform rather than inpackage:coverage.Unless someone can still reproduce it on a recent
package:test, this looks closeable.