Sha256: 154ff0e49dc089bf797d50748019f1f2b6d4089efa9a8fdc9783a968cb2b988a
Contents?: true
Size: 1004 Bytes
Versions: 4
Compression:
Stored size: 1004 Bytes
Contents
$:.unshift(ENV['JASMINE_GEM_PATH']) if ENV['JASMINE_GEM_PATH'] # for gem testing purposes require 'rubygems' require 'jasmine' if Jasmine::Dependencies.rspec2? require 'rspec' else require 'spec' end jasmine_yml = File.join(Dir.pwd, 'spec', 'javascripts', 'support', 'jasmine.yml') if File.exist?(jasmine_yml) end Jasmine.load_configuration_from_yaml config = Jasmine.config server = Jasmine::Server.new(config.port, Jasmine::Application.app(config)) driver = Jasmine::SeleniumDriver.new(config.browser, "#{config.host}:#{config.port}/") t = Thread.new do begin server.start rescue ChildProcess::TimeoutError end # # ignore bad exits end t.abort_on_exception = true Jasmine::wait_for_listener(config.port, "jasmine server") puts "jasmine server started." results_processor = Jasmine::ResultsProcessor.new(config) results = Jasmine::Runners::HTTP.new(driver, results_processor, config.result_batch_size).run formatter = Jasmine::RspecFormatter.new formatter.format_results(results)
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
jasmine-multi_json-1.3.2.1 | lib/jasmine/run_specs.rb |
jasmine-1.3.2 | lib/jasmine/run_specs.rb |
jasmine-multi_json-1.3.1.1 | lib/jasmine/run_specs.rb |
jasmine-1.3.1 | lib/jasmine/run_specs.rb |