lib/retest/command.rb in retest-0.6.0.pre vs lib/retest/command.rb in retest-0.6.0.pre2

- old
+ new

@@ -1,7 +1,5 @@ -require 'open3' - module Retest class Command def self.for(test_command) if test_command.include? '<test>' VariableCommand @@ -22,15 +20,14 @@ command == obj.command end def run(file_changed) if @cached_test_file = test_file(file_changed) - stdout_and_stderr_str, _ = Open3.capture2e command.gsub('<test>', cached_test_file) - Retest.log "Test File Selected: #{cached_test_file}" - Retest.log stdout_and_stderr_str + puts "Test File Selected: #{cached_test_file}" + system command.gsub('<test>', cached_test_file) else - Retest.log <<~ERROR + puts <<~ERROR 404 - Test File Not Found Retest could not find a matching test file to run. ERROR end end @@ -40,11 +37,10 @@ end end HardcodedCommand = Struct.new(:command) do def run(_) - stdout_and_stderr_str, _ = Open3.capture2e(command) - Retest.log stdout_and_stderr_str + system command end end end end \ No newline at end of file