Whenever I add new tests to my codebase I encounter the aforementioned error message while running them.
package:flutter_tools/src/test/flutter_tester_device.dart 224:73 FlutterTesterTestDevice.finished
===== asynchronous gap ===========================
dart:async/future.dart Future.any.onValue
Failed to load "app/test/club/club_section_test.dart": Shell subprocess ended cleanly. Did main() call exit()?
flutter clean && flutter packages get
Well it seems that for some reason flutter is caching some data that becomes stale, you can easily get the test back by running:
flutter clean
Which "Delete the build/ and .dart_tool/ directories" and then:
flutter packages get
To rebuild those directories and download dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With