test(cli): cover init, status, and generate-flag CLI gaps - #343
Merged
Merged
Conversation
Adds cmd-level integration coverage for previously-unasserted CLI behaviors: cascade init topology/envs/dir/name scaffolding; status env/build/deploy/consistency including --json and required --env negatives; and generate non-default flags (--output, --promote-output, --orchestrate-only, --promote-only, --action-folder) plus schema, version, branch-protection, and quiet verify. Fixes a test that leaked generated artifacts into the source tree by anchoring generation to a temp dir. Closes #329, closes #330, closes #331. Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
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.
Closes #329, #330, #331.
Adds cmd-level integration coverage for previously-unasserted CLI behaviors (all pure-CLI, no act+gitea needed):
--envsmanifest across all 4 presets,--dirplacement,--nameweaving (somecli.init*IDs were already covered; this fills the cmd-layer gaps).--jsonshape, and required---envnon-zero-exit negatives.--output/--promote-output/--orchestrate-only/--promote-only/--action-folder, plusschema,--version, branch-protection, and quietverify.Also fixes a test that leaked generated workflow artifacts into the source tree (now anchored to a temp dir). Local:
cmd/cascade32 tests,internal/initcmd21 tests pass; build + golangci-lint clean.