guard / guard-rspec

Guard::RSpec automatically run your specs (much like autotest)
https://rubygems.org/gems/guard-rspec
MIT License
1.31k stars 241 forks source link

is it possible to run all specs that are affected by differences between feature branch and master? #415

Open tansaku opened 5 years ago

tansaku commented 5 years ago

I've been enjoying being able to run rubocop only on changes in my feature branch, and I was wondering if there was a way to run only specs affected by changes in my feature branch ...?

I'm not a fan of spec runs kicking off when I save - I'd like to be able to control when they start, but detect the set of specs that are influenced in my current feature branch ...

pocheptsov commented 5 years ago

@tansaku that's what https://github.com/toptal/crystalball is helping to do, you can automate its start with cmd option like:

guard :rspec, cmd: 'bundle exec crystalball' do
...
end