Class: Jasmine::Runners::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/runners/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, results_processor, result_batch_size) ⇒ HTTP

Returns a new instance of HTTP.



6
7
8
9
10
# File 'lib/jasmine/runners/http.rb', line 6

def initialize(client, results_processor, result_batch_size)
  @client = client
  @results_processor = results_processor
  @result_batch_size = result_batch_size
end

Instance Attribute Details

#suitesObject

Returns the value of attribute suites.



4
5
6
# File 'lib/jasmine/runners/http.rb', line 4

def suites
  @suites
end

Instance Method Details

#runObject



12
13
14
15
16
17
18
19
# File 'lib/jasmine/runners/http.rb', line 12

def run
  @client.connect
  load_suite_info
  wait_for_suites_to_finish_running
  results = @results_processor.process(results_hash, suites)
  @client.disconnect
  results
end