method

new

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: Test::Unit::UI::GTK2::TestRunner
new(suite, output_level = NORMAL) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/test/unit/ui/gtk2/testrunner.rb, line 443
          def initialize(suite, output_level = NORMAL)
            if suite.respond_to?(:suite) then
              @suite = suite.suite
            else
              @suite = suite
            end
            @result = nil

            @runner = Thread.current
            @restart_signal = Class.new(Exception)
            @viewer = Thread.start do
              @runner.join rescue @runner.run
              Gtk.main
            end
            @viewer.join rescue nil # wait deadlock to handshake
          end
Register or log in to add new notes.