From: Josh Cheek Date: 2011-08-10T05:02:05+09:00 Subject: Re: Any simple solution for automatic test running? --0003255758aebca96504aa18089a Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 9, 2011 at 2:49 PM, Michal Suchanek wrote: > Hello, > > I was looking for some simple program that would run my tests every > time I update my code. > > I found two that don't work. > > The first is zentest which inflicts particular structure on your > project which my 2-file project does not have and which I am not > willing to inflict on it. > > The other is test-loop which tries to be brutally parallel and in the > process of implementing this parallelism it eats the SIGCHLD my code > is waiting for. > > My searching did not uncover anything else in this category. > > Any suggestions welcome. > > Thanks > > Michal > > 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" }' --0003255758aebca96504aa18089a--