Skip to content

test(dart): isolate factory tests from host Flutter discovery - #1248

Open
debugmcpdev wants to merge 1 commit into
mainfrom
test/dart-probe-fixture
Open

debugmcpdev wants to merge 1 commit into
mainfrom
test/dart-probe-fixture

Conversation

@debugmcpdev

Copy link
Copy Markdown
Collaborator

Closes #1247.

The factory fixture supplied synthetic SDK paths and version probes, but left device and emulator discovery to the host. On Windows, a real Flutter installation at the fixture path caused the version-reporting test to exceed its 15-second timeout even when run alone.

The fixture now supplies both discovery hooks. Its return type requires every factory hook, so adding another optional production hook will prompt an explicit fixture choice at compile time. Device-specific cases can still override the defaults.

The 15 factory and probe tests pass, including the previously timing-out case. The repository test typecheck reports zero diagnostics.

Signed-off-by: Codex <noreply@openai.com>
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(dart): mock Flutter device discovery in the factory's version-probe unit test

1 participant