Sha256: d51759d583318959c4210cdf11081acc45a0d2c2cf1ac603ee817cbd2101e447

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

class Test::Unit::UI::TestRunnerMediator
  alias_method :run_suite_without_seleniumrc, :run_suite
  def run_suite_with_seleniumrc
    start_app_server
    result = run_suite_without_seleniumrc
    stop_app_server(result)
    result
  end
  alias_method :run_suite, :run_suite_with_seleniumrc

  protected
  def start_app_server
    @selenium_driver = Polonium::Configuration.instance
    @app_runner = @selenium_driver.create_server_runner
    @app_runner.start
  end

  def stop_app_server(result)
    @app_runner.stop
    @selenium_driver.stop_driver_if_necessary(result.passed?)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polonium-0.1.0 lib/polonium/extensions/testrunnermediator.rb