Skip to content

Commit

Permalink
fixup! GH245 - Enable test commnand as aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Jan 26, 2025
1 parent d752229 commit e9f05d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions exe/retest
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand All @@ -52,7 +52,6 @@ puts "Command: '#{command}'"

# === DIFF ACTION ===
if options.params[:diff]
puts
program.diff(options.params[:diff])
return
end
Expand Down
2 changes: 1 addition & 1 deletion lib/retest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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('<test>', new_command.format_batch(*test_files))
Expand Down

0 comments on commit e9f05d4

Please sign in to comment.