Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip generating tests with --skip-tests flag given #22

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

timriley
Copy link
Member

@timriley timriley commented Nov 6, 2023

Having the ability to skip tests when generating an action or part is useful if you know you're going to test it in some other way than what we generate by default.

For example, when working on a web app, and when using Capybara-driven feature specs, we generally don't want request specs generated for each action class.

Making this change allows us to have the user run through our "building a web app" getting started guide without generating a bunch of request specs that will clutter up their new app and start failing as they change the app according to the guide.

See hanami/cli#126 for where we add the --skip-tests flag to the CLI commands in the first place.

Having the ability to skip tests when generating an action or part is useful if you know you're going to test it in _some other way_ than what we generate by default.

For example, when working on a web app, and when using Capybara-driven feature specs, we generally don't want request specs generated for each action class.
@timriley timriley requested a review from jodosha November 6, 2023 00:57
@timriley timriley self-assigned this Nov 6, 2023
@timriley timriley added this to the v2.1.0 milestone Nov 6, 2023
Copy link
Member

@jodosha jodosha left a comment

Choose a reason for hiding this comment

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

@timriley 👍 Please remember of the CHANGELOG.

@timriley timriley merged commit fa22047 into main Nov 6, 2023
6 checks passed
@timriley timriley deleted the skip-tests-when-flag-given branch November 6, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants