Skip to content

In widget tests the debugger seems to also debug library code, despite having activated "Debug my code" #2351

Closed

Description

@HerrNiklasRaab

Does anyone can reproduce this behavior? Only applies when import 'package:flutter_test/flutter_test.dart'; is used if i change it to import 'package:test/test.dart'; debugger doesn't step into the library code.

image

And:
image

Activity

  1. added this to the v3.10.0 milestone on Apr 14, 2020
  2. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Apr 14, 2020
  3. DanTup commented on Apr 14, 2020

    @DanTup
    Member

    Thanks for the report! Because Flutter doesn't live in the pub cache, it gets treated as user code and needs specific handling. However flutter_test wasn't previously included in that handling.

    With the fix, you'll now end up breaking where you'd expect, on your own code:

    Screenshot 2020-04-14 at 11 54 42

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions