Hi, At Sat, 18 Dec 2004 18:59:54 +0900, Ryan Davis wrote in [ruby-core:03975]: > I believe these are the minimal patches needed to make it possible to > use autorunner's directory collector from the command line: > > % ruby -r test/unit/autorunner -e 'Test::Unit::AutoRunner.run' > Loaded suite . > Started > ...[etc] Already you can do: $ ruby -rtest/unit -rtest/unit/autorunner -e Test::Unit::AutoRunner.run Or $ testrb . So I think this is minimal.
Index: lib/test/unit/autorunner.rb =================================================================== RCS file: /cvs/ruby/src/ruby/lib/test/unit/autorunner.rb,v retrieving revision 1.10 diff -u -2 -p -r1.10 autorunner.rb --- lib/test/unit/autorunner.rb 16 Nov 2004 04:39:22 -0000 1.10 +++ lib/test/unit/autorunner.rb 18 Dec 2004 20:53:58 -0000 @@ -1,2 +1,3 @@ +require 'test/unit' require 'test/unit/ui/testrunnerutilities' require 'optparse'
-- Nobu Nakada