Sha256: a30b741ab1944944519f9fe57bca8d2112e37639220a7efae40cf99d4e261673
Contents?: true
Size: 989 Bytes
Versions: 4
Compression:
Stored size: 989 Bytes
Contents
require 'spec_helper' Jasmine.configure do |config| root = File.expand_path(File.join(File.dirname(__FILE__), "..")) config.src_dir = File.join(root, 'src') config.spec_dir = Jasmine::Core.path config.spec_files = lambda { (Jasmine::Core.html_spec_files + Jasmine::Core.core_spec_files).map {|f| File.join(config.spec_dir, f) } } end 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