Skip to content

Commit bd68cb7

Browse files
committed
[CI][API] Adds HTML formatter to RSpec
1 parent 4bcd8b0 commit bd68cb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

elasticsearch-api/spec/spec_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ def self.included(context)
7171
RSpec.configure do |config|
7272
config.include(HelperModule)
7373
config.formatter = 'documentation'
74-
config.color_mode = :on
7574
config.add_formatter('RspecJunitFormatter', 'tmp/elasticsearch-api-junit.xml')
75+
config.add_formatter(
76+
'RSpec::Core::Formatters::HtmlFormatter',
77+
"tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}.html"
78+
)
79+
config.color_mode = :on
7680
end
7781

7882
class NotFound < StandardError; end

0 commit comments

Comments
 (0)