test(sprout_cli): generate-and-test gate (cli:e2e) #31

Closed
opened 2026-08-02 15:38:43 +00:00 by scheerenkevin · 2 comments
scheerenkevin commented 2026-08-02 15:38:43 +00:00 (Migrated from github.com)

Replace apps/example integration tests with a gate that tests the real deliverable.

  • De-risk FIRST: manually sprout create inside the repo, confirm the generated app path-deps onto sprout_ui + sprout_state (workspace members) and flutter pub get/flutter test succeed.
  • Add melos cli:e2e: for each template, dart run bin/sprout.dart create e2e_<t> --template <t> -o <repoRoot>/.sprout_e2e (path deps) then cd in and flutter test; clean up.
  • .sprout_e2e/ → root .gitignore.
  • Wire cli:e2e into the check aggregate AFTER cli:embed:check.

This runs 2 full pub get + build_runner cycles — slowest gate; CI-primary.

Replace apps/example integration tests with a gate that tests the real deliverable. - [ ] De-risk FIRST: manually `sprout create` inside the repo, confirm the generated app path-deps onto sprout_ui + sprout_state (workspace members) and `flutter pub get`/`flutter test` succeed. - [ ] Add melos `cli:e2e`: for each template, `dart run bin/sprout.dart create e2e_<t> --template <t> -o <repoRoot>/.sprout_e2e` (path deps) then `cd` in and `flutter test`; clean up. - [ ] `.sprout_e2e/` → root .gitignore. - [ ] Wire `cli:e2e` into the `check` aggregate AFTER `cli:embed:check`. This runs 2 full pub get + build_runner cycles — slowest gate; CI-primary.
scheerenkevin commented 2026-08-02 15:39:32 +00:00 (Migrated from github.com)

Order: independent of #29/#30 but must land before #32 (it replaces apps/example's tests).

Order: independent of #29/#30 but must land before #32 (it replaces apps/example's tests).
scheerenkevin commented 2026-08-02 16:16:53 +00:00 (Migrated from github.com)

Done: cli:e2e gate (lean + gallery) wired into check.

Done: cli:e2e gate (lean + gallery) wired into check.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sprout/sprout#31
No description provided.