Class: KnapsackPro::Runners::BaseRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack_pro/runners/base_runner.rb

Direct Known Subclasses

CucumberRunner, MinitestRunner, RSpecRunner

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adapter_class) ⇒ BaseRunner



8
9
10
11
# File 'lib/knapsack_pro/runners/base_runner.rb', line 8

def initialize(adapter_class)
  @allocator_builder = KnapsackPro::AllocatorBuilder.new(adapter_class)
  @allocator = allocator_builder.allocator
end

Class Method Details

.run(args) ⇒ Object

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/knapsack_pro/runners/base_runner.rb', line 4

def self.run(args)
  raise NotImplementedError
end

Instance Method Details

#stringify_test_file_pathsObject



17
18
19
# File 'lib/knapsack_pro/runners/base_runner.rb', line 17

def stringify_test_file_paths
  KnapsackPro::TestFilePresenter.stringify_paths(test_file_paths)
end

#test_dirObject



21
22
23
# File 'lib/knapsack_pro/runners/base_runner.rb', line 21

def test_dir
  allocator_builder.test_dir
end

#test_file_pathsObject



13
14
15
# File 'lib/knapsack_pro/runners/base_runner.rb', line 13

def test_file_paths
  allocator.test_file_paths
end