From: Michal Suchanek Date: 2011-08-10T19:09:33+09:00 Subject: Re: Any simple solution for automatic test running? On 9 August 2011 22:02, Josh Cheek wrote: > On Tue, Aug 9, 2011 at 2:49 PM, Michal Suchanek wrote: >> >> > I've had success with watchr ( > http://mynyml.com/ruby/flexible-continuous-testing) you pass it a glob > pattern and a block. When any file that matches the pattern gets modified, > it evaluates the block. So put code to run your test in the block, and the > root dir in the glob pattern. > > At its simplest: > $ gem install watchr > $ watchr -e 'watch("./*.rb") { |filename| system "rake test" }' > Yes, watchr is quite nice. The only minor problem is that with multiple overlapping patterns only the first one is used. Thanks Michal