Sha256: 602b8fe0090f50743c1b4678392af93ea38044bb0f76b5b52aacee24f2e43084
Contents?: true
Size: 744 Bytes
Versions: 4
Compression:
Stored size: 744 Bytes
Contents
require 'jasmine' Jasmine.load_configuration_from_yaml(File.join(Dir.pwd, 'spec', 'jasmine.yml')) 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 & 1 rubygems