Class: Liri::Agent::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/agent/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(unit_test_class, source_code_folder_path) ⇒ Runner

Returns a new instance of Runner.



8
9
10
# File 'lib/agent/runner.rb', line 8

def initialize(unit_test_class, source_code_folder_path)
  @unit_test = Object.const_get(unit_test_class).new(source_code_folder_path)
end

Instance Method Details

#run_tests(tests) ⇒ Object



12
13
14
# File 'lib/agent/runner.rb', line 12

def run_tests(tests)
  @unit_test.run_tests(tests)
end