mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
b2f8d3a668
Flutter widget tests assert if a test completes with timers still pending. However, it can be hard to diagnose where a pending timer came from. For example, a widget might consume a third-party library that internally uses a timer. I added a FakeAsync.pendingTimersDebugInfo getter to quiver (https://github.com/google/quiver-dart/pull/500). Make flutter_test use it. Additionally modify Flutter's debugPrintStack to take an optional StackTrace argument instead of always printing StackTrace.current. Fixes #4237. |
||
---|---|---|
.. | ||
crash1_test.dart | ||
crash2_test.dart | ||
disallow_error_reporter_modification_test.dart | ||
fail_test.dart | ||
missing_import_test.broken_dart | ||
pass_test.dart | ||
pending_timer_fail_test.dart | ||
README.md | ||
syntax_error_test.broken_dart | ||
timeout_fail_test.dart | ||
timeout_pass_test.dart |
This directory is used by //flutter/dev/bots/test.dart to verify that
flutter test
actually correctly fails when a test fails.