-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our teststoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
When I try to run flutter test test/material/text_field_test.dart in the flutter repo from packages/flutter, it works, but when I run it from the IDE, or on the command line with flutter test --machine test/material/text_field_test.dart, it hangs after running the tests, and throws an exception:
NoSuchMethodError: The method 'handleFinishedTest' was called on null.
Receiver: null
Tried calling: handleFinishedTest(Instance of 'ProcessEvent')
I can't tell if this is because there's something funky with the test, or with the tool.
Details
/Users/gspencer/code/flutter/bin/flutter --no-color test --machine test/material/text_field_test.dart Building flutter tool... Running "flutter pub get" in flutter... 0.4s dart:core-patch/object_patch.dart 53:5 Object.noSuchMethod package:flutter_tools/src/test/event_printer.dart 37:20 EventPrinter.handleFinishedTest package:flutter_tools/src/test/flutter_platform.dart 664:30 FlutterPlatform._startTest ===== asynchronous gap =========================== dart:async/zone.dart 1109:19 _CustomZone.registerUnaryCallback dart:async-patch/async_patch.dart 79:23 _asyncThenWrapperHelper package:flutter_tools/src/test/flutter_platform.dart 359:36 FlutterPlatform.loadChannel package:flutter_tools/src/test/flutter_platform.dart 312:46 FlutterPlatform.load package:test_core/src/runner/loader.dart 232:38 Loader.loadFile. ===== asynchronous gap =========================== dart:async/zone.dart 1109:19 _CustomZone.registerUnaryCallback dart:async-patch/async_patch.dart 79:23 _asyncThenWrapperHelper package:test_core/src/runner/loader.dart Loader.loadFile. package:test_core/src/runner/load_suite.dart 98:31 new LoadSuite.. package:test_core/src/runner/load_suite.dart 108:8 new LoadSuite. package:test_api/src/backend/invoker.dart 400:30 Invoker._onRun.... dart:async/future.dart 176:37 new Future. package:stack_trace/src/stack_zone_specification.dart 209:15 StackZoneSpecification._run package:stack_trace/src/stack_zone_specification.dart 119:48 StackZoneSpecification._registerCallback. dart:async/zone.dart 1180:38 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 979:7 _CustomZone.runGuarded dart:async/zone.dart 1019:23 _CustomZone.bindCallbackGuarded. package:stack_trace/src/stack_zone_specification.dart 209:15 StackZoneSpecification._run package:stack_trace/src/stack_zone_specification.dart 119:48 StackZoneSpecification._registerCallback. dart:async/zone.dart 1184:13 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 1003:23 _CustomZone.bindCallback. dart:async-patch/timer_patch.dart 23:15 Timer._createTimer. dart:isolate-patch/timer_impl.dart 398:19 _Timer._runTimers dart:isolate-patch/timer_impl.dart 429:5 _Timer._handleMessage dart:isolate-patch/isolate_patch.dart 168:12 _RawReceivePortImpl._handleMessage ===== asynchronous gap =========================== dart:async/zone.dart 1101:19 _CustomZone.registerCallback dart:async/zone.dart 1018:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 54:45 new Timer dart:async/timer.dart 91:9 Timer.run dart:async/future.dart 174:11 new Future package:test_api/src/backend/invoker.dart 399:21 Invoker._onRun... dart:async/zone.dart 1184:13 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 1619:10 _runZoned dart:async/zone.dart 1539:10 runZoned package:test_api/src/backend/invoker.dart 387:9 Invoker._onRun.. dart:async/zone.dart 1184:13 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 1619:10 _runZoned dart:async/zone.dart 1539:10 runZoned package:test_api/src/backend/invoker.dart 148:7 Invoker.guard package:test_api/src/backend/invoker.dart 436:15 Invoker._guardIfGuarded package:test_api/src/backend/invoker.dart 386:7 Invoker._onRun. package:stack_trace/src/chain.dart 101:24 Chain.capture. dart:async/zone.dart 1184:13 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 1619:10 _runZoned dart:async/zone.dart 1539:10 runZoned package:stack_trace/src/chain.dart 99:12 Chain.capture package:test_api/src/backend/invoker.dart 385:11 Invoker._onRun package:test_api/src/backend/live_test_controller.dart 197:11 LiveTestController._run package:test_api/src/backend/live_test_controller.dart 50:37 _LiveTest.run dart:async/future.dart 202:37 new Future.microtask. dart:async/zone.dart 1180:38 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 979:7 _CustomZone.runGuarded dart:async/zone.dart 1019:23 _CustomZone.bindCallbackGuarded. dart:async/zone.dart 1184:13 _rootRun dart:async/zone.dart 1077:19 _CustomZone.run dart:async/zone.dart 979:7 _CustomZone.runGuarded dart:async/zone.dart 1019:23 _CustomZone.bindCallbackGuarded. dart:async/schedule_microtask.dart 43:21 _microtaskLoop dart:async/schedule_microtask.dart 52:5 _startMicrotaskLoop dart:isolate-patch/isolate_patch.dart 118:13 _runPendingImmediateCallback dart:isolate-patch/isolate_patch.dart 169:5 _RawReceivePortImpl._handleMessageNoSuchMethodError: The method 'handleFinishedTest' was called on null.
Receiver: null
Tried calling: handleFinishedTest(Instance of 'ProcessEvent')
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our teststoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.