Provides an interface to write any given UI against, hopefully making it easy to write new UIs.
Creates a new TestRunnerMediator initialized to run the passed suite.
# File lib/test/unit/ui/testrunnermediator.rb, line 26 def initialize(suite) @suite = suite end
Runs the suite the TestRunnerMediator was created with.
# File lib/test/unit/ui/testrunnermediator.rb, line 32 def run AutoRunner.need_auto_run = false result = create_result start_time = Time.now begin with_listener(result) do notify_listeners(RESET, @suite.size) notify_listeners(STARTED, result) run_suite(result) end ensure elapsed_time = Time.now - start_time notify_listeners(FINISHED, elapsed_time) end result end
Generated with the Darkfish Rdoc Generator 2.