Skip to content

'pub run test -p chrome' and '--coverage=coverage' hangs #471

Open

Description

@marandaneto

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.

Related to: getsentry/sentry-dart#227

Activity

  1. kevmoo commented on Aug 13, 2026

    @kevmoo
    Member

    While working on web coverage support (#2448) I went looking for this hang and believe it was fixed upstream in package:test almost five years ago.

    package:test CHANGELOG, 1.16.8 (2021-03-12):

    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions