test-loop is a fast continuous testing tool for Ruby that continuously
detects and tests changes in your Ruby application in an efficient
manner, whereby it:
Absorbs the test execution overhead into the main Ruby process.
Forks to evaluate your test files directly and without overhead.
It relies on file modification times to determine what parts of your
Ruby application have changed and then uses Rake’s String#pathmap
function to determine which test files in your test suite correspond
to those changes.
Tests CHANGES in your Ruby application; does NOT run all tests
Reabsorbs test execution overhead if the test or spec helper file
Mostly I/O bound, so you can have it always running without CPU
Supports Test::Unit, RSpec, or any other testing framework that is
utilized by your application’s test/test_helper.rb and spec/spec_helper.rb files.
Implemented in less than 50 (SLOC) lines of code!
As a Ruby gem:
gem install test-loop
As a Git clone:
git clone git://github.com/sunaku/test-loop
If installed as a Ruby gem:
If installed as a Git clone:
ruby -Ilib bin/test-loop
Press Control-Z (or send the SIGTSTP signal) to forcibly run all
tests, even if there are no changes in your Ruby application.
Press Control-\ (or send the SIGQUIT signal) to forcibly reabsorb
the test execution overhead, even if its sources have not changed.
Press Control-C (or send the SIGINT signal) to quit the test loop.
Released under the ISC license. See the LICENSE file for details.
I just released version 2.0.0, which allows you to define additional
test file globs and mappings, as well as arbitrary logic to execute
after every test run, in a configuration file located in the current