Class: Retest::Runners::TestRunner
- Includes:
- CachedTestFile
- Defined in:
- lib/retest/runners/test_runner.rb
Instance Attribute Summary
Attributes inherited from Runner
Instance Method Summary collapse
Methods included from CachedTestFile
#cached_test_file, #cached_test_file=, #purge_test_file
Methods inherited from Runner
#==, #initialize, #run_all_tests
Constructor Details
This class inherits a constructor from Retest::Runners::Runner
Instance Method Details
#run(changed_file, repository:) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/retest/runners/test_runner.rb', line 8 def run(changed_file, repository:) self.cached_test_file = repository.find_test(changed_file) return print_file_not_found unless cached_test_file log("Test File Selected: #{cached_test_file}") system_run command.gsub('<test>', cached_test_file) end |
#sync(added:, removed:) ⇒ Object
17 18 19 |
# File 'lib/retest/runners/test_runner.rb', line 17 def sync(added:, removed:) purge_test_file(removed) end |