Class: Publisher::Providers::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/allure_report_publisher/lib/providers/_provider.rb

Overview

Base class for CI executor info

Direct Known Subclasses

Github, Gitlab

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Provider

CI provider base

Parameters:

  • args (Hash)

Options Hash (**args):

  • :report_url (String)
  • :report_path (String)
  • :update_pr (Boolean)
  • :summary_type (String)
  • :summary_table_type (Symbol)
  • :collapse_summay (Boolean)
  • :flaky_warning_status (Boolean)
  • :report_title (String)


37
38
39
40
41
42
43
44
45
46
# File 'lib/allure_report_publisher/lib/providers/_provider.rb', line 37

def initialize(**args)
  @report_url = args[:report_url]
  @report_path = args[:report_path]
  @update_pr = args[:update_pr]
  @summary_type = args[:summary_type]
  @summary_table_type = args[:summary_table_type]
  @collapse_summary = args[:collapse_summary]
  @flaky_warning_status = args[:flaky_warning_status]
  @report_title = args[:report_title]
end

Instance Method Details

#add_result_summaryvoid

This method returns an undefined value.

Add report url to pull request description



51
52
53
54
55
# File 'lib/allure_report_publisher/lib/providers/_provider.rb', line 51

def add_result_summary
  return add_comment if comment?

  update_pr_description
end