Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/leak_tracking/DETECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ Read more about leak tracking in [overview](OVERVIEW.md).

The Flutter test method `testWidgets` can be configured to track and detect leaks
from all instrumented classes. To enable leak tracking for your entire test suite
and to configure leak tracking settings, add or modify your
and to configure leak tracking settings:

1. Add dev_dependency on `leak_tracker_flutter_testing`. Put `any` instead of version, because
the version is defined by your Flutter SDK.

```yaml
dev_dependencies:
...
leak_tracker_flutter_testing: any
```

2. Add or modify your
[`test/flutter_test_config.dart`](https://api.flutter.dev/flutter/flutter_test/flutter_test-library.html)
file:

Expand Down