feat: add --no-test flag to skip test file generation in create commands#63
Merged
FilledStacks merged 1 commit intoStacked-Org:mainfrom Oct 7, 2025
Merged
Conversation
- Added --no-test flag to all create commands (view, service, bottom_sheet, dialog, widget) - Updated TemplateService to support noTest parameter and filter out test files - Added new constants: ksNoTest and kCommandHelpNoTest - When --no-test is provided, components are created without their test files - Maintains backward compatibility - default behavior unchanged - Fixed for-loop bug in CreateWidgetCommand (missing increment) - Updated all command help messages to include the new flag - Regenerated mock files to match new method signatures Usage examples: stacked create view my_view --no-test stacked create service my_service --no-test stacked create dialog my_dialog --no-test This allows developers to skip test file generation when they prefer to write tests manually or don't need them for certain components.
Contributor
Author
|
@FilledStacks @ferrarafer kindly check this |
Contributor
|
Awesome! Checking this out. |
FilledStacks
approved these changes
Oct 7, 2025
FilledStacks
approved these changes
Oct 7, 2025
Contributor
FilledStacks
left a comment
There was a problem hiding this comment.
I would ask for tests, but given the feature you're adding you probably don't write any automated tests 😅
FilledStacks
pushed a commit
that referenced
this pull request
Oct 7, 2025
# [1.15.0](v1.14.0...v1.15.0) (2025-10-07) ### Features * add --no-test flag to skip test file generation in create commands ([#63](#63)) ([86e06bf](86e06bf))
Contributor
|
🎉 This PR is included in version 1.15.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
Usage examples:
This allows developers to skip test file generation when they prefer to write tests manually or don't need them for certain components.