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

Rspec only on Modified files? #703

Closed
quintrino opened this issue Feb 4, 2020 · 1 comment
Closed

Rspec only on Modified files? #703

quintrino opened this issue Feb 4, 2020 · 1 comment

Comments

@quintrino
Copy link

Is there a way to have the rspec hook run only on modified rspec files?

Looking at
https://github.com/sds/overcommit/blob/master/lib/overcommit/hook/pre_push/r_spec.rb

it appears it runs the rspec command in it's entirety and doesn't have the option to limit it just to modified rspec files.

@sds
Copy link
Owner

sds commented Feb 9, 2020

Would welcome a pull request adding functionality to the RSpec pre-push hook to optionally allow running tests only for modified files.

You can use the modified_files helper.

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

No branches or pull requests

2 participants