Skip to content

Commit

Permalink
GH245 - Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexB52 committed Jan 26, 2025
1 parent 1501759 commit 198f89f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/retest/program.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,13 @@ def diff(branch)
raise "Git not installed" unless VersionControl::Git.installed?

test_files = repository.find_tests VersionControl::Git.diff_files(branch)
run_selected(test_files)
runner.run(test_files: test_files)
end

def run_all
runner.run_all
end

def run_selected(test_files)
runner.run(test_files: test_files)
end

def clear_terminal
system('clear 2>/dev/null') || system('cls 2>/dev/null')
end
Expand Down

0 comments on commit 198f89f

Please sign in to comment.