flutter / flutter/flutter

Run plugin tests against the debug engine

Open
#143,093 2 comments 0 reactions 0 assignees View on GitHub
c: contributor-productivity P2 team-ecosystem triaged-ecosystem
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

Right now plugin tests run against the release version of the flutter engine. The release version of the engine has less verification for correctness. For example, in https://github.com/flutter/packages/pull/6069 it was found that a platform channel in the `google_maps_flutter` plugin was being used from a background thread which is a [violation](https://docs.flutter.dev/platform-integration/platform-channels?tab=type-mappings-swift-tab#channels-and-platform-threading) that can introduce race conditions. It is silently ignored in release engines, but if plugin tests were run against the debug engine we'd catch those failures and potentially others.

It is my understanding that we save debug builds but they may not be readily served by the flutter tool.

This will solve the issue for our plugins, ideally this feature would be available to external plugin developers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.