Skip to content

Commit

Permalink
add diff jenkins:unit layout
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver authored and ehelms committed Jul 12, 2023
1 parent 790fde5 commit 2df94e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
21 changes: 5 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,14 @@ task :test do
Rake::Task['test:core'].invoke
end

begin
require 'minitest/reporters'
rescue LoadError # rubocop:disable Lint/HandleExceptions
# 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|
task.fail_on_error = true
end
end

namespace :jenkins do
desc nil # No description means it's not listed in rake -T
task unit: :test
end
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', '..', 'lib')
require 'mocha/minitest'
require "rack/test"
require 'minitest/reporters'
require 'smart_proxy_for_testing'

require 'dynflow'
require 'smart_proxy_dynflow'
require 'smart_proxy_dynflow/testing'

Minitest::Reporters.use!

Proxy::Dynflow::Plugin.load_test_settings({})

logdir = File.join(File.dirname(__FILE__), '..', '..', 'logs')
Expand Down

0 comments on commit 2df94e5

Please sign in to comment.