Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
HerrNiklasRaab opened this issue Apr 14, 2020 · 1 comment
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Milestone

Comments

@HerrNiklasRaab
Copy link

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

@DanTup DanTup added this to the v3.10.0 milestone Apr 14, 2020
@DanTup DanTup added in testing Relates to test execution of Dart/Flutter tests for end users is bug labels Apr 14, 2020
@DanTup
Copy link
Member

DanTup commented Apr 14, 2020

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

@DanTup DanTup closed this as completed in 2f38da4 Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in testing Relates to test execution of Dart/Flutter tests for end users is bug
Projects
None yet
Development

No branches or pull requests

2 participants