This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
drunit / README.markdown
Distributed Ruby Unit (Testing)
A library for running tests across multiple applications from a single test case.
Basic usage:
class MainTest < Test::Unit::TestCase
include Drunit
RemoteApp(:fake_app, FAKE_APP_PATH + "/fake_app.rb")
RemoteApp(:rails_app, RAILS_APP_PATH + "/script/runner")
def test_should_use_the_same_db
id = in_app(:fake_app){
User.create!(:name => "Some Name")
}
in_app(:rails_app, id) do |id|
assert_nothing_raised() { User.find(id) }
end
end
end
Other "features"
- Automatically "Brings Up" and "Takes Down" your apps as needed. (Uses GC to tell when it's no longer needed.)
- Tracking of assertion counts.
- Beautified (a little) backtraces.
- Line number preserving between apps.
- Packed full of bugs (probably, I'm not sure).
- Packed full of 1.9 incompatibilities (I'm assuming).
- Packed full of space ninjas.
- Over 14% more awesome than a bag of chips.







