Sha256: a407a3156f1b92f064481a6be18143a7613e8f015904935c52f20d5f6fcbf7e3

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

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

  protected
  def start_app_server
    @selenium_driver = Polonium::Configuration.instance
    @app_runner = @selenium_driver.create_app_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

7 entries across 7 versions & 1 rubygems

Version Path
polonium-0.3.3 lib/polonium/adapters/test_unit.rb
polonium-0.3.1 lib/polonium/adapters/test_unit.rb
polonium-0.3.2 lib/polonium/adapters/test_unit.rb
polonium-0.3.0 lib/polonium/adapters/test_unit.rb
polonium-0.2.2 lib/polonium/adapters/test_unit.rb
polonium-0.2.0 lib/polonium/adapters/test_unit.rb
polonium-0.2.1 lib/polonium/adapters/test_unit.rb