1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bin/testrb: new test runner. [ruby-core:01845]

* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run,
  Test::Unit::AutoRunner#initialize): take test list to run.

* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS,
  Test::Unit::AutoRunner#run): should not exit inside a library, just
  return the result instead.

* lib/test/unit.rb: ditto.

* test/runner.rb: exit with the test result.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-12-02 12:31:44 +00:00
parent 76eab3527f
commit 086745b7d6
9 changed files with 133 additions and 105 deletions

View file

@ -33,6 +33,7 @@ module Test
else
@suite = suite
end
@result = nil
@runner = Thread.current
@restart_signal = Class.new(Exception)
@ -49,6 +50,7 @@ module Test
setup_ui
attach_to_mediator
start_ui
@result
end
private
@ -94,7 +96,6 @@ module Test
retry
rescue
end
exit !@red
end
def stop(*) # :nodoc:
@ -145,6 +146,7 @@ module Test
end
def started(result) # :nodoc:
@result = result
output_status("Started...")
end