Skip to content

test(live-flutter): fail instead of falling back to a minimal fixture - #209

Merged
ElbertePlinio merged 1 commit into
mainfrom
test/138-live-flutter-fallback
Sep 25, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
test/138-live-flutter-fallback

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

The live Flutter test used to swap in a minimal fallback fixture whenever flutter create --offline failed, and it still passed. It now fails and includes the create output in the message. The release checklist explains the prerequisite.

The first-run failure seen while preparing 0.4.0 came from the pub cache. Offline create fails only when the cache is missing the app template's packages; I reproduced it with an empty PUB_CACHE (could not find package flutter_lints in cache). A fresh isolated HOME with a warm cache passes. The checklist now says to run one online flutter create on a fresh machine or after a Flutter upgrade.

Now that there is only one fixture, the fixture kind is always the real flutter create project, and a failed create names the fixture step in the panic message.

Validation: cargo fmt --check and cargo clippy -p pickforge-cli --all-targets -D warnings are clean. PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutter passes with the real cache and fails with an empty PUB_CACHE. PickCheck passes on the Rust file.

Closes #138

flutter create --offline fails when the pub cache lacks the app template's
packages. The test used to swap in a minimal fixture and still pass. It now
fails with the create output, and the release checklist documents warming
the pub cache first.

Closes #138
@ElbertePlinio
ElbertePlinio merged commit 44503f9 into main Sep 25, 2026
10 checks passed
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(live-flutter): fail instead of silently using the minimal fallback fixture

1 participant