From: Michal Suchanek Date: 2011-08-10T18:53:22+09:00 Subject: Re: Any simple solution for automatic test running? On 9 August 2011 22:00, Jeremy Hinegardner wrote: > On Wed, Aug 10, 2011 at 04:49:40AM +0900, 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. > > Try the autotest command in the ZenTest project instead. That's what I did: $ autotest --help Continuous testing for your ruby app. Autotest automatically tests code that has changed. It assumes the code is in lib, and tests are in tests. Autotest uses plugins to control what happens. You configure plugins with require statements in the .autotest file in your project base directory, and a default configuration for all your projects in the .autotest file in your home directory. Usage: autotest [options] -f, --fast-start Do not run full tests at start -c, --no-full-after-failed Do not run all tests on red->green -v, --verbose Be annoyingly verbose (debugs .autotest). -q, --quiet Be quiet. -r, --rc CONF Override path to config file -s, --style STYLE Manually specify test style. (default: autodiscover) -w, --warnings Turn on ruby warnings -h, --help Show this. > >> 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. > > Since it is just a two file project, any file watcher would do it. >    https://rubygems.org/gems/directory_watcher >    https://github.com/thomasfl/filewatcher Yes, I expect that's what these have inside. Just thought I will try to look for some semi-round wheels before doing my own starting from the square board. > > > Or something based off of guard or watchr > >    https://rubygems.org/gems/watchr >    https://github.com/guard > > googling around for file system watchers or autotest provides lots of hits. I sure do get lots of results for autotest but can't see something that does *not* go back to zentest. Thanks Michal