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

Feature Request: run spec for all open spec files #20

Closed
Osseta opened this issue Jul 6, 2021 · 6 comments · Fixed by #25
Closed

Feature Request: run spec for all open spec files #20

Osseta opened this issue Jul 6, 2021 · 6 comments · Fixed by #25

Comments

@Osseta
Copy link

Osseta commented Jul 6, 2021

When I working I will open on the editor all the relevant spec files to the task at hand. Would be good to run a command that runs all the spec files currently open in the editor rather than running each one by one.

if I have the following files open in vscode:

  • app/models/widget.rb
  • spec/models/widget_spec.rb
  • spec/controllers/widget_controller_spec.rb

Running the command would execute:

bundle exec rspec --color spec/models/widget_spec.rb spec/controllers/widget_controller_spec.rb

@thadeu
Copy link
Owner

thadeu commented Mar 30, 2023

Interesting... do you need this yet?

@Osseta
Copy link
Author

Osseta commented Mar 30, 2023

I would love this feature. Was lamenting the lack only last week when refactoring some spec helpers and having to run affected files individually. We have a very large monolith and running all specs takes over an hour locally. (We run massively parallel in CI)

@thadeu
Copy link
Owner

thadeu commented Mar 31, 2023

@Osseta Cool! I'll work today in this feature. I hope release coming soon.

The ideia will be: All open files with _spec.rb must be execute, right?

@thadeu thadeu linked a pull request Mar 31, 2023 that will close this issue
@thadeu
Copy link
Owner

thadeu commented Mar 31, 2023

This feature will be included in this PR #25

Thanks @Osseta for your request!

@thadeu
Copy link
Owner

thadeu commented Mar 31, 2023

@Osseta v0.5.27 Contains this features, use cmd+option+j to scan opened files and run rspec command

@Osseta
Copy link
Author

Osseta commented Mar 31, 2023

This is working perfectly 💯 . Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants