Skip to content

Conversation

@Ay0ubCheurfi
Copy link
Contributor

  • 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.

- 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.
@Ay0ubCheurfi
Copy link
Contributor Author

@FilledStacks @ferrarafer kindly check this

@FilledStacks
Copy link
Contributor

Awesome! Checking this out.

Copy link
Contributor

@FilledStacks FilledStacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would ask for tests, but given the feature you're adding you probably don't write any automated tests 😅

@FilledStacks FilledStacks merged commit 86e06bf into Stacked-Org:main Oct 7, 2025
1 check passed
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))
@FilledStacks
Copy link
Contributor

🎉 This PR is included in version 1.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants