Sha256: c54039cd509fcb68419f2fdf9f297c0b71543c99421e72c2e8da5929d794125a

Contents?: true

Size: 442 Bytes

Versions: 6

Compression:

Stored size: 442 Bytes

Contents

module Retest
  module Runners
    class ChangeRunner < Runner
      def run(changed_file = nil, repository: nil)
        if changed_file
          log("Changed File Selected: #{changed_file}")
          system_run command.gsub('<changed>', changed_file)
        else
          log(<<~ERROR)
            404 - Test File Not Found
            Retest could not find a changed file to run.
          ERROR
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retest-1.10.0 lib/retest/runners/change_runner.rb
retest-1.9.0 lib/retest/runners/change_runner.rb
retest-1.8.0 lib/retest/runners/change_runner.rb
retest-1.7.0 lib/retest/runners/change_runner.rb
retest-1.6.2 lib/retest/runners/change_runner.rb
retest-1.6.1 lib/retest/runners/change_runner.rb