Sha256: eda706cf1d937b50b1e3cb1696534f5273df7cf5e4a070392486c0a6bb015bc1

Contents?: true

Size: 1.14 KB

Versions: 14

Compression:

Stored size: 1.14 KB

Contents

$:.unshift(ENV['JASMINE_GEM_PATH']) if ENV['JASMINE_GEM_PATH'] # for gem testing purposes

require 'rubygems'
require 'jasmine'
jasmine_config_overrides = File.expand_path(File.join(Dir.pwd, 'spec', 'javascripts', 'support', 'jasmine_config.rb'))
require jasmine_config_overrides if File.exist?(jasmine_config_overrides)
if Jasmine::Dependencies.rspec2?
  require 'rspec'
else
  require 'spec'
end

jasmine_runner_config = Jasmine::RunnerConfig.new
server = Jasmine::Server.new(jasmine_runner_config.port, Jasmine::Application.app(jasmine_runner_config))
client = Jasmine::SeleniumDriver.new(jasmine_runner_config.browser, jasmine_runner_config.jasmine_server_url)

t = Thread.new do
  begin
    server.start
  rescue ChildProcess::TimeoutError
  end
  # # ignore bad exits
end
t.abort_on_exception = true
Jasmine::wait_for_listener(jasmine_runner_config.port, "jasmine server")
puts "jasmine server started."

results_processor = Jasmine::ResultsProcessor.new(jasmine_runner_config)
results = Jasmine::Runners::HTTP.new(client, results_processor, jasmine_runner_config.result_batch_size).run
formatter = Jasmine::RspecFormatter.new
formatter.format_results(results)

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
rally-jasmine-1.2.0.18 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.12 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.11 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.10 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.8 lib/jasmine/run_specs.rb
jasmine-1.3.0 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.7 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.6 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.5 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.4 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.3 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.2 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0.1 lib/jasmine/run_specs.rb
rally-jasmine-1.2.0 lib/jasmine/run_specs.rb