leak_tracker_flutter_testing 2.0.3 copy "leak_tracker_flutter_testing: ^2.0.3" to clipboard
leak_tracker_flutter_testing: ^2.0.3 copied to clipboard

unlisted

An internal package to test leak tracking with Flutter.

pub package package publisher

Coming soon! See https://github.com/flutter/devtools/issues/3951.

What is leak_tracker_flutter_testing? #

leak_tracker_flutter_testing is Flutter specific test helpers for leak_tracker.

They are separated from leak_tracker_testing because the last one is pure Flutter package and should not reference Flutter Framework.

How to use the helpers? #

To make your widget test fail in case of leaks, use testWidgetsWithLeakTracking instead of testWidgets:

testWidgetsWithLeakTracking('not leaking', (widgetTester) async {
    ...
});

See more examples in end_to_end_test.dart.