test: add missing test coverage for init, changelog, and tag commands#258
Merged
test: add missing test coverage for init, changelog, and tag commands#258
Conversation
…fig assertions
- Assert root .version is NOT created by workspace init
- Assert workspace.versioning == "independent" in generated config
- Assert {module_path}/v prefix in workspace tag-manager config
- Add "full" template to TestCLI_InitCommand_WithTemplateFlag matrix
- verify recursive collection from module subdirectories with module-prefixed headings - verify per-module tag creation and duplicate tag skipping in multi-module mode - table-driven test for semver sorting with mixed module-scoped prefixes
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.
Description
Adds test coverage for gaps identified during a code-vs-docs review of all CLI commands.
init command (workspace_test.go, initcmd_test.go):
.versionis NOT created by--workspaceinit--workspace --migrateinteraction (migrate silently ignored)workspace.versioning == "independent"in generated config{module_path}/vprefix in workspace tag-manager configchangelog command (changelogcmd_test.go):
.changes/moduleA/v1.0.0.md) and verifies module-prefixed headingstag command (tagcmd_test.go):
tag create --allmulti-module flow with duplicate tag skippingRelated Issue
Notes for Reviewers