diff --git a/exe/retest b/exe/retest index a5962af..54ecf98 100755 --- a/exe/retest +++ b/exe/retest @@ -41,8 +41,8 @@ program = Retest::Program.new( # === LOGGING === case command -when Retest::Command::Rspec then puts "Setup: [RSPEC]" when Retest::Command::Rails then puts "Setup: [RAILS]" +when Retest::Command::Rspec then puts "Setup: [RSPEC]" when Retest::Command::Rake then puts "Setup: [RAKE]" when Retest::Command::Ruby then puts "Setup: [RUBY]" else puts "Setup: [UNKNOWN]" @@ -52,7 +52,6 @@ puts "Command: '#{command}'" # === DIFF ACTION === if options.params[:diff] - puts program.diff(options.params[:diff]) return end diff --git a/lib/retest/runner.rb b/lib/retest/runner.rb index 1dee84e..146c731 100644 --- a/lib/retest/runner.rb +++ b/lib/retest/runner.rb @@ -45,7 +45,7 @@ def format_instruction(changed_files: [], test_files: []) if changed_files.empty? && test_files.size >= 1 new_command = command.switch_to(:batched) - log("Tests selected:") + log("\nTests selected:") test_files.each { |test_file| log(" - #{test_file}") } return new_command.to_s.gsub('', new_command.format_batch(*test_files))