-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create adjustable test settings. #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments around naming that might make these classes / method names more intuitive.
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
void _emptyLeakHandler(Leaks leaks) {} | ||
|
||
/// Leak tracking settings and helper methods for tests. | ||
abstract class LeakTrackingForTests { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like LeakTrackingForTestsSettings and LeakTrackingForTests should just be one class then? Why do the statics need to be separated out?
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
pkgs/leak_tracker_flutter_testing/lib/src/leak_tracking_for_tests.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Contributes to flutter/flutter#135856
Draft of PR for Flutter to consume the changes: flutter/flutter#136692.
After merging this PR, I will update flutter/test, to have 8% of tests that are not leak free yet looking like this: