tree: 645a4734dd9a8a34efc2f476dd857ea6da6e9f6a [path history] [tgz]
  1. lib/
  2. test/
  3. analysis_options.yaml
  4. CHANGELOG.md
  5. LICENSE
  6. pubspec.yaml
  7. pubspec_overrides.yaml
  8. README.md
pkgs/leak_tracker_flutter_testing/README.md

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.