Skip to content
Snippets Groups Projects
Verified Commit ba19d96f authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Include JUnit-like output from minitest

parent 301bd2cf
No related branches found
No related tags found
No related merge requests found
Pipeline #111002 passed
...@@ -34,6 +34,9 @@ pages: ...@@ -34,6 +34,9 @@ pages:
rake: rake:
script: script:
- bundle exec rake test - bundle exec rake test
artifacts:
reports:
junit: test/reports/*.xml
gemfile: gemfile:
before_script: [] before_script: []
......
...@@ -6,6 +6,7 @@ source "https://rubygems.org" ...@@ -6,6 +6,7 @@ source "https://rubygems.org"
gemspec gemspec
gem "minitest", "~> 5.0" gem "minitest", "~> 5.0"
gem "minitest-reporters", "~> 1"
gem "rake", "~> 13.0" gem "rake", "~> 13.0"
gem "rubocop", "~> 1.21" gem "rubocop", "~> 1.21"
gem "webmock" gem "webmock"
...@@ -5,9 +5,15 @@ require "pp" ...@@ -5,9 +5,15 @@ require "pp"
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "liudesk_cmdb" require "liudesk_cmdb"
require "minitest/autorun" require "minitest/reporters"
require "webmock/minitest" require "webmock/minitest"
if ENV['CI']
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new, Minitest::Reporters::JUnitReporter.new]
else
Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new
end
def setup_cmdb_client def setup_cmdb_client
LiudeskCMDB::Client.new 'https://example.com', subscription_key: 'testing' LiudeskCMDB::Client.new 'https://example.com', subscription_key: 'testing'
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment