Skip to content

flutter test --platform chrome --wasm hangs. #177008

Description

@fuzzybinary

Steps to reproduce

  1. Switch to beta channel
  2. Create a new project with web and wasm support
  3. Run flutter test --platform chrome --wasm
  4. Observe tests hanging

Expected results

Tests are run and complete properly.

Actual results

The command hangs without running any tests.

Code sample

Use the sample without any code changes:

flutter create --platform web

Screenshots or Video

No response

Logs

Logs
Resolving dependencies... 
Downloading packages... 
  characters 1.4.0 (1.4.1 available)
  material_color_utilities 0.11.1 (0.13.0 available)
Got dependencies!
2 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Generated wasm module '/var/folders/j3/t34c12bj24q4fm0xrwmq63vh0000gp/T/flutter_tools.DsLQWR/flutter_test.jyrja3/main.dart.wasm', and JS init file '/var/folders/j3/t34c12bj24q4fm0xrwmq63vh0000gp/T/flutter_tools.DsLQWR/flutter_test.jyrja3/main.dart.mjs'.
03:52 +0: loading /Users/jeff.ward/Projects/wasm_test/test/widget_test.dart                                                                                                                  ^No tests ran.

When using FVM to switch to beta I also get a log specifying "Invalid SDK Hash"

Flutter Doctor output

Doctor output
[✓] Flutter (Channel beta, 3.37.0-0.1.pre, on macOS 15.7.1 24G231 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: regressionIt was better in the past than it is nowe: wasmIssues related to the wasm build of Flutter Web.found in release: 3.37Found to occur in 3.37has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions