Repository navigation
test(live-flutter): fail instead of falling back to a minimal fixture - #209
Merged
Merged
Conversation
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
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The live Flutter test used to swap in a minimal fallback fixture whenever
flutter create --offlinefailed, 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 onlineflutter createon a fresh machine or after a Flutter upgrade.Now that there is only one fixture, the fixture kind is always the real
flutter createproject, and a failed create names the fixture step in the panic message.Validation:
cargo fmt --checkandcargo clippy -p pickforge-cli --all-targets -D warningsare clean.PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutterpasses with the real cache and fails with an emptyPUB_CACHE. PickCheck passes on the Rust file.Closes #138