I’m using Guard gem
At some time of development I need to track only a specific file or several files but not an entire project.
Is there some handy way to temporarily track a particular file?
I know it can be done by modifying guard file but I don’t think it’s a neat solution.
Actually you can just use
focus: truein theitstatement for instance:In your Spec file.
Then in spec/spec_helper you need to add the config option.
Then Guard will automatically pick up test that is focused and run it only. Also the
config.run_all_when_everything_filtered = truetells guard to run all of the tests when there is nothing filtered even though the name sounds misleading.I find Ryan Bate’s rails casts to be very helpful on Guard and Spork.