Skip to content

Using with test unit

Milhouse edited this page Sep 14, 2010 · 1 revision

Install

  • clone the testunit-spork gem
  • install gem: will add testdrb as an executable
  • copy the test_unit.rb file from the testunit-spork to the corresponding folder in the spork lib/spork/test_frameworks folder.
  • In your Rails app:
    • don’t bootstrap. Seems to work without so far.

To Run

  • In one console: spork testunit (ignore the bootstrap and other warnings)
  • In another console, run the list of tests: testdrb test/unit/my_test_one.rb test/unit/my_test_two.rb

Errors

Bad Test File Name: C:/ruby187/lib/ruby/1.8/drb/drb.rb:1095:in `method_missing': MissingSourceFile (DRb::DRbUnknownError)