leak_tracker_flutter_testing 2.0.3 leak_tracker_flutter_testing: ^2.0.3 copied to clipboard
An internal package to test leak tracking with Flutter.
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.