Class: Retest::Runners::ChangeRunner
- Defined in:
- lib/retest/runners/change_runner.rb
Instance Attribute Summary
Attributes inherited from Runner
Instance Method Summary collapse
Methods inherited from Runner
#==, #initialize, #run_all_tests, #sync
Constructor Details
This class inherits a constructor from Retest::Runners::Runner
Instance Method Details
#run(changed_file = nil, repository: nil) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/retest/runners/change_runner.rb', line 4 def run(changed_file = nil, repository: nil) return print_file_not_found unless changed_file log("Changed File Selected: #{changed_file}") system_run command.gsub('<changed>', changed_file) end |