dmk
dmk

Reputation: 31

Is there a way to run rspec tests over and over?

I want to run my _spec.rb test in a loop, but I can't find a way to do that.

I have tried to make a loop .bat file but it doesn't run spec file again after finishing :

:start 
rspec some_test_spec.rb 
sleep 30 
goto start

Mayby there is any better/ easier way to do that for example using bundle exec rspec or rake command?

Upvotes: 2

Views: 178

Answers (1)

Holger Just
Holger Just

Reputation: 55778

With guard-rspec, you can run your rspec tests automatically once any of the watched files changed. This is often used during development e.g. when appying the Red/Green/Refactor style of TDD.

Upvotes: 3

Related Questions