Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Makes unit tests of a Rails application run instantly
Ruby
Tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
LICENSE
README.rdoc
Rakefile
rails-test-serving.gemspec

README.rdoc

Tired of waitings 10 seconds before your tests run?

Quick usage instructions

  1. Insert the following lines at the very top of test/test_helper.rb:

    require 'rails_test_serving'
    RailsTestServing.boot
  2. Start the server:

    cd <project-dir>
    ruby test/test_helper.rb --serve
  3. Run tests as you usually do:

    ruby test/unit/account_test.rb
    ruby test/unit/account_test.rb -n /balance/

    As a consequence, they work in RubyMate too (⌘R in TextMate).

Note: if the server is not started, tests fall back to running the usual way.

Caveats

  • There might exist some quirks: search for “TODO” in the source. I can bear them but contributions are welcome.

  • Some unit tests are left to be written.

Something went wrong with that request. Please try again.