Skip to content

Change the testing:all prompt to a class option flag (off by default)#195

Merged
OutlawAndy merged 6 commits into
masterfrom
update-testing-all
Jun 30, 2026
Merged

Change the testing:all prompt to a class option flag (off by default)#195
OutlawAndy merged 6 commits into
masterfrom
update-testing-all

Conversation

@OutlawAndy

@OutlawAndy OutlawAndy commented Jun 29, 2026

Copy link
Copy Markdown
Member

Updates the rolemodel:testing:all generator to make the jasmine-playwright runner installation opt-in via a CLI flag, aligning the generator with non-interactive and repeatable install workflows. This also bumps the gem version to reflect the behavior change.

Changes:

  • Replace the interactive prompt in rolemodel:testing:all with an opt-in --js-runner class option (default: off).
  • Improve generator error handling type for missing GitHub Packages token.
  • Update Rspec generator
  • Update testing generator documentation and bump gem version to 1.3.0.

Screenshots

Main (-zsh) — ~CODERoleModelrolemodel_rails 06 29 2026@161443 @2x

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the rolemodel:testing:all generator to make the jasmine-playwright runner installation opt-in via a CLI flag, aligning the generator with non-interactive and repeatable install workflows. This also bumps the gem version to reflect the behavior change.

Changes:

  • Replace the interactive prompt in rolemodel:testing:all with an opt-in --js-runner class option (default: off).
  • Improve generator error handling type for missing GitHub Packages token.
  • Update testing generator documentation and bump gem version to 1.3.0.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/rolemodel/version.rb Bumps Rolemodel gem version to 1.3.0.
lib/generators/rolemodel/testing/README.md Documents the new --js-runner opt-in behavior for installing jasmine-playwright runner.
lib/generators/rolemodel/testing/jasmine_playwright/jasmine_playwright_generator.rb Uses a Thor exception type for missing token validation.
lib/generators/rolemodel/testing/all_generator.rb Adds --js-runner option and makes jasmine-playwright generator conditional.
Gemfile.lock Updates locked version to 1.3.0.
example_rails_legacy/Gemfile.lock Updates locked version to 1.3.0 in legacy example app.

Comment thread lib/generators/rolemodel/testing/all_generator.rb Outdated
Comment thread lib/generators/rolemodel/testing/all_generator.rb Outdated
Comment thread lib/generators/rolemodel/testing/README.md
OutlawAndy and others added 3 commits June 29, 2026 16:28
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@OutlawAndy OutlawAndy self-assigned this Jun 29, 2026
@OutlawAndy OutlawAndy marked this pull request as ready for review June 29, 2026 22:13
@OutlawAndy OutlawAndy requested a review from wesrich June 29, 2026 22:13

if options.marsh_grass?
gem 'marsh_grass'
gem 'pry'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We shouldn't need this? Pry should be included by the marsh_grass gem if it wants it, but I think we may have gotten rid of that... remind me to check.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hey @wesrich check if pry is still a required sibling dependency of marsh grass!

@OutlawAndy OutlawAndy merged commit 30fcda0 into master Jun 30, 2026
2 checks passed
@mark-kraemer mark-kraemer deleted the update-testing-all branch June 30, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants