Skip to content

Can't run flutter run -d chrome test/foo_test.dart #49838

@DaveShuckerow

Description

@DaveShuckerow

From DevTools, I run this:

$ flutter run -d chrome test/flutter/table_test.dart                  
Launching test/flutter/table_test.dart on Chrome in debug mode...
Configuring `build_web_compilers:entrypoint` in target `devtools_app:devtools_app` but this is not a known Builder
Building application for the web...                                15.0s
Attempting to connect to browser instance...   

And nothing happens. Chrome starts and the logs show this error

main.dart.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

I suspect that the tool needs to adjust the index.html file opened in Chrome to run the test script.

---Doctor---

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.14.7-pre.27, on Mac OS X 10.14.6 18G2022, locale en-US)
 
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Chrome - develop for the web
[✓] IntelliJ IDEA Community Edition (version 2019.1.3)
[✓] Connected device (3 available)

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoleplatform-webWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions