1- # Leak tracking in Flutter framework
1+ # Leak tracking in Flutter Framework
22
3- Flutter Framework widget tests use [ leak_tracker] (https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/
4- OVERVIEW.md) to detect leaks from objects that have not been disposed.
3+ ## TL;DR;
54
6- This page contains Flutter Framework related information .
5+ To enable leak tracking locally pass ` --dart-define LEAK_TRACKING=true ` to ` flutter test ` .
76
87See leak_tracker documentation for
98[ general leak troubleshooting] ( https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/TROUBLESHOOT.md ) .
109
10+ This page contains Flutter Framework specific information.
11+
12+ ## Overview
13+
14+ Flutter Framework widget tests use [ leak_tracker] (https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/
15+ OVERVIEW.md) to detect leaks from objects that have not been disposed.
16+
1117Test failures cause by leaks look like this:
1218
1319```
@@ -32,8 +38,8 @@ disposables are disposed.
3238If a tests is opted out, the reasons should be clearly explained
3339in the comments.
3440
35- It is ok to opt out a test when a test
36- throws an exception and the code did not finalize properly.
41+ It is ok to opt out a test when the test
42+ throws an exception and thus the code did not finalize properly.
3743
3844While some exceptions should be finalized properly
3945and should not result in leaking objects,
@@ -59,5 +65,3 @@ For local testing, or for test shards configuration, to enable leak tracking for
5965` --dart-define LEAK_TRACKING=true ` to ` flutter test ` .
6066
6167You can see the bot's status on the [ Flutter build dashboard] ( https://flutter-dashboard.appspot.com/#/build ) .
62- The bots are not blocking yet.
63- See [ a proposal to convert them to be blocking] ( http://flutter.dev/go/leak-tracker-make-bots-blocking ) .
0 commit comments