Skip to content

Commit

Permalink
Make test verbose on CI again
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Aug 12, 2022
1 parent e3d7009 commit 5dc7061
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,14 @@
require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new :test do |t|
t.libs = %w(lib test)

if ARGV.size == 1
t.pattern = 'test/*_test.rb'
else
t.test_files = ARGV[1..-1]
end

t.options = '-v' if ENV['CI'] || ENV['VERBOSE']
end

namespace :test do
groups = %i(redis distributed sentinel cluster)
groups.each do |group|
Rake::TestTask.new(group) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/#{group}/**/*_test.rb"]
t.options = '-v' if ENV['CI'] || ENV['VERBOSE']
end
end

Expand Down

0 comments on commit 5dc7061

Please sign in to comment.