Skip to content

test(live-flutter): fail instead of silently using the minimal fallback fixture #138

Closed

Description

@ElbertePlinio

While preparing the 0.4.0 candidate (#137), PICKFORGE_LIVE_FLUTTER=1 cargo test -p pickforge-cli --test live_flutter degraded to the minimal fallback fixture on its first two runs (flutter create --offline failed with "Found no pubspec.yaml file ... Failed to update packages") and still reported ok. Later runs used the real fixture. The checklist says the live test is never silently replaced by a mock, but today that is only visible in stderr.

  • Make the fallback fail the test, or gate it behind an explicit opt-in env var that the release checklist does not set
  • Print the fixture kind in the test name or assertion message
  • Investigate the first-run flutter create --offline failure (pub cache warm-up?) and document the prerequisite

Refs #89

Activity

  1. ElbertePlinio commented on Sep 25, 2026

    @ElbertePlinio
    MemberAuthor

    PR #209. The fallback is gone, so the live test now fails when flutter create --offline fails. The first-run failure happens when the pub cache is missing the template's packages (flutter_lints). A fresh HOME with a warm cache passes. The release checklist now says to warm the cache with one online flutter create first. With only one fixture left, a failed create is named in the panic message.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions