Skip to content

Commit

Permalink
Add minitest-reporters and
Browse files Browse the repository at this point in the history
define the jenkins:unit rake task
  • Loading branch information
archanaserver committed Jun 6, 2023
1 parent 8be59d5 commit e9ac020
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ group :test do
gem 'smart_proxy', :git => "https://github.com/theforeman/smart-proxy", :branch => "develop"

gem 'minitest'
gem 'minitest-reporters'
gem 'mocha'
gem 'public_suffix'
gem 'rack-test'
Expand Down
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ task :test do
Rake::Task['test:core'].invoke
end

begin
require 'minitest/reporters'
# test group not enabled
else
desc 'Set up minitest for CI'
task 'ci:setup:minitest' do
Minitest::Reporters.use!
end

namespace :jenkins do
desc nil # No description means it's not listed in rake -T
task unit: [:test]
end
end

if defined? RuboCop
desc 'Run RuboCop on the lib directory'
RuboCop::RakeTask.new(:rubocop) do |task|
Expand Down

0 comments on commit e9ac020

Please sign in to comment.