leak_tracker_flutter_testing 1.0.10 leak_tracker_flutter_testing: ^1.0.10 copied to clipboard
Flutter specific helpers for dart memory leak tracking.
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.