Skip to content

Support running tests on device using launch config flag #2363

@HerrNiklasRaab

Description

@HerrNiklasRaab

At the moment I can run widget tests on a device by running flutter run --target=test/widget_test.dart. But it would be awesome if I actually could debug this widget test while running on the device. So that I am able to stop with breakpoints. At the moment, all those tests are just running through and you have a hard time to follow, what happens on the device screen.

It would be even more awesome if a code lens would appear above every widget test, which starts debugging the widget test on the device.

Something like:

Run | Debug | Debug on device

Is something like this possible? Any thoughts on this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in flutterRelates to running Flutter appsin testingRelates to test execution of Dart/Flutter tests for end usersis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions