Sha256: 6b5f6c2614e3c530bea9409aa324e65a11620be85aa10542b3c0095f2690fd48
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 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 require 'jasmine/runners/phantom' 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 port = Jasmine.find_unused_port server = Jasmine::Server.new(port, Jasmine::Application.app(config)) t = Thread.new do begin server.start rescue ChildProcess::TimeoutError end # # ignore bad exits end t.abort_on_exception = true Jasmine::wait_for_listener(port, "jasmine server") puts "jasmine server started." results_processor = Jasmine::ResultsProcessor.new(config) results = Jasmine::Runners::Phantom.new(config.port, results_processor, config.result_batch_size).run formatter = Jasmine::RspecFormatter.new formatter.format_results(results)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phantom_jasmine-0.0.5 | lib/phantom_jasmine/run_specs.rb |