[ANN] test-loop 13.0.0

Version 13.0.0 (2011-08-24)

test-loop - Continuous testing for Ruby with fork/eval
GitHub - sunaku/test-loop: MOVED TO sunaku/testr

What is it?

test-loop is a fast continuous testing tool for Ruby that automatically
detects and tests changes in your application in an efficient manner:

  1. Absorbs the test execution overhead into the main Ruby process.
  2. Forks to run your test files without overhead and in parallel.
  3. Avoids running unchanged test blocks inside changed test files.

What is new?

Incompatible changes:

  • Pass worker sequence number as the last argument to lambda
    functions in Test::Loop.before_each_test and
    Test::Loop.after_each_test arrays.

New features:

  • In the test/loop/rails configuration preset:

    • Automatically test a controller when its model or factory is
      modified.

    • Warn the user if Railtie (Rails 3) is not available for
      automatic disabling of Rails’ class caching mechanism under the
      test environment.

  • Add test/loop/parallel_tests configuration preset for
    parallel_tests gem. (Corné
    Verbruggen
    )

  • Assign rotating sequence numbers to workers so that you can handle
    parallel processes like connecting to separate databases better.
    (Corné Verbruggen)

Housekeeping:

  • README: move configuration presets above options.

  • Eliminate 1 SLOC: .rb extension used in file glob.

  • Turn off executable bit on loop.rb file mode.

  • Pass child ENV directly to exec() for atomicity.

Have you considered using posix_spawn instead of fork?

This sounds like it’d be super useful on JRuby due to JRuby’s startup
time,
however JRuby doesn’t support fork