Class Test::Unit::UI::Tk::TestRunner
In: test/unit/ui/tk/testrunner.rb
Parent: Object

Runs a Test::Unit::TestSuite in a Tk UI. Obviously, this one requires you to have Tk and the Ruby Tk extension installed.

Methods

new   start  

Public Class methods

Creates a new TestRunner for running the passed suite.

[Source]

# File test/unit/ui/tk/testrunner.rb, line 26
          def initialize(suite, output_level = NORMAL)
            if (suite.respond_to?(:suite))
              @suite = suite.suite
            else
              @suite = suite
            end
            @result = nil

            @red = false
            @fault_detail_list = []
            @runner = Thread.current
            @restart_signal = Class.new(Exception)
            @viewer = Thread.start do
              @runner.join rescue @runner.run
              ::Tk.mainloop
            end
            @viewer.join rescue nil # wait deadlock to handshake
          end

Public Instance methods

Begins the test run.

[Source]

# File test/unit/ui/tk/testrunner.rb, line 46
          def start
            setup_ui
            setup_mediator
            attach_to_mediator
            start_ui
            @result
          end

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.