Class: TestDiff::BuildCoverage

Inherits:
Object
  • Object
show all
Defined in:
lib/test_diff/build_coverage.rb

Overview

class used to build the coverage file

Instance Method Summary collapse

Constructor Details

#initialize(spec_folder, pre_load, stop_on_failure, only_missing) ⇒ BuildCoverage

Returns a new instance of BuildCoverage.



5
6
7
8
9
10
11
# File 'lib/test_diff/build_coverage.rb', line 5

def initialize(spec_folder, pre_load, stop_on_failure, only_missing)
  @spec_folder = spec_folder
  @pre_load = pre_load
  @batch_queue = Queue.new
  @stop_on_failure = stop_on_failure
  @only_missing = only_missing
end

Instance Method Details

#runObject



13
14
15
16
# File 'lib/test_diff/build_coverage.rb', line 13

def run
  RunableTests.add_all(@spec_folder, @batch_queue, @only_missing)
  CoverageRunner.run(@batch_queue, @pre_load, !@stop_on_failure)
end