Comment out --disable-vm-service flag from packages/flutter_tools/lib/src/test/runner.dart
Run flutter test --experimental-faster-testing test/material in flutter/packages/flutter/
Copy the VM service URI into DevTools
DevTools will fail to connect to the test runner. This is due to the fact that the service extension registration event handler assumes the events are from the main isolate (in this example, the service extensions are registered by the Flutter framework). However, the main isolate for the test runner consists of bootstrapping code for the test and doesn't register the same service extensions, so the invocations of the service extensions fail, preventing DevTools from connecting to the application.
Reproduction Steps:
--disable-vm-service
flag frompackages/flutter_tools/lib/src/test/runner.dart
flutter test --experimental-faster-testing test/material
influtter/packages/flutter/
DevTools will fail to connect to the test runner. This is due to the fact that the service extension registration event handler assumes the events are from the main isolate (in this example, the service extensions are registered by the Flutter framework). However, the main isolate for the test runner consists of bootstrapping code for the test and doesn't register the same service extensions, so the invocations of the service extensions fail, preventing DevTools from connecting to the application.