From d8f2221fc8fd55bae83d681918b50a2aa343714b Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 12:07:14 +0100 Subject: [PATCH 01/14] Refactor options for cucumber --- lib/report_portal/cucumber/formatter.rb | 10 +++------- lib/report_portal/settings.rb | 4 ++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/report_portal/cucumber/formatter.rb b/lib/report_portal/cucumber/formatter.rb index 8c4d13b..efede67 100644 --- a/lib/report_portal/cucumber/formatter.rb +++ b/lib/report_portal/cucumber/formatter.rb @@ -36,7 +36,7 @@ def report end def setup_message_processing - return if use_same_thread_for_reporting? + return if ReportPortal::Settings.instance.formatter_modes.use_same_thread_for_reporting? @queue = Queue.new @thread = Thread.new do @@ -49,7 +49,7 @@ def setup_message_processing end def finish_message_processing - return if use_same_thread_for_reporting? + return if ReportPortal::Settings.instance.formatter_modes.use_same_thread_for_reporting? sleep 0.03 while !@queue.empty? || @queue.num_waiting.zero? # TODO: how to interrupt launch if the user aborted execution @thread.kill @@ -57,16 +57,12 @@ def finish_message_processing def process_message(report_method_name, *method_args) args = [report_method_name, *method_args, ReportPortal.now] - if use_same_thread_for_reporting? + if ReportPortal::Settings.instance.formatter_modes.use_same_thread_for_reporting? report.public_send(*args) else @queue.push(args) end end - - def use_same_thread_for_reporting? - ReportPortal::Settings.instance.formatter_modes.include?('use_same_thread_for_reporting') - end end end end diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index 3eabe34..c1c39d4 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -48,6 +48,10 @@ def formatter_modes setting('formatter_modes') || [] end + def use_same_thread_for_reporting? + formatter_modes.include?('use_same_thread_for_reporting') + end + private def setting(key) From 564d6c8e65d9acdf082620fe825d725c29cb2aa3 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 12:09:07 +0100 Subject: [PATCH 02/14] Refactor options for cucumber reporter --- lib/report_portal/cucumber/report.rb | 8 ++------ lib/report_portal/settings.rb | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/report_portal/cucumber/report.rb b/lib/report_portal/cucumber/report.rb index f331c2e..b90ef9c 100644 --- a/lib/report_portal/cucumber/report.rb +++ b/lib/report_portal/cucumber/report.rb @@ -14,10 +14,6 @@ def parallel? false end - def attach_to_launch? - ReportPortal::Settings.instance.formatter_modes.include?('attach_to_launch') - end - def initialize @last_used_time = 0 @root_node = Tree::TreeNode.new('') @@ -26,7 +22,7 @@ def initialize end def start_launch(desired_time = ReportPortal.now) - if attach_to_launch? + if ReportPortal::Settings.instance.attach_to_launch? ReportPortal.launch_id = if ReportPortal::Settings.instance.launch_id ReportPortal::Settings.instance.launch_id @@ -119,7 +115,7 @@ def test_step_finished(event, desired_time = ReportPortal.now) def test_run_finished(_event, desired_time = ReportPortal.now) end_feature(desired_time) unless @parent_item_node.is_root? - unless attach_to_launch? + unless ReportPortal::Settings.instance.attach_to_launch? close_all_children_of(@root_node) # Folder items are closed here as they can't be closed after finishing a feature time_to_send = time_to_send(desired_time) ReportPortal.finish_launch(time_to_send) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index c1c39d4..9ce04de 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -52,6 +52,10 @@ def use_same_thread_for_reporting? formatter_modes.include?('use_same_thread_for_reporting') end + def attach_to_launch? + formatter_modes.include?('attach_to_launch') + end + private def setting(key) From 35c787bef8b4fe97fc6021e3ad1a7f900d44783c Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 12:28:29 +0100 Subject: [PATCH 03/14] Add option for attach to launch for rspec --- lib/report_portal/cucumber/report.rb | 7 +++---- lib/report_portal/rspec/formatter.rb | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/lib/report_portal/cucumber/report.rb b/lib/report_portal/cucumber/report.rb index b90ef9c..005ea88 100644 --- a/lib/report_portal/cucumber/report.rb +++ b/lib/report_portal/cucumber/report.rb @@ -21,7 +21,7 @@ def initialize start_launch end - def start_launch(desired_time = ReportPortal.now) + def start_launch if ReportPortal::Settings.instance.attach_to_launch? ReportPortal.launch_id = if ReportPortal::Settings.instance.launch_id @@ -32,9 +32,8 @@ def start_launch(desired_time = ReportPortal.now) end $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" else - description = ReportPortal::Settings.instance.description - description ||= ARGV.map { |arg| arg.gsub(/rp_uuid=.+/, 'rp_uuid=[FILTERED]') }.join(' ') - ReportPortal.start_launch(description, time_to_send(desired_time)) + cmd_args = ARGV.map { |arg| arg.include?('rp_uuid=') ? 'rp_uuid=[FILTERED]' : arg }.join(' ') + ReportPortal.start_launch(cmd_args) end end diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index 1d287b7..dfd10e8 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -18,13 +18,24 @@ class Formatter def initialize(_output) ENV['REPORT_PORTAL_USED'] = 'true' + @root_node = Tree::TreeNode.new(SecureRandom.hex) + @current_group_node = @root_node end def start(_start_notification) - cmd_args = ARGV.map { |arg| arg.include?('rp_uuid=') ? 'rp_uuid=[FILTERED]' : arg }.join(' ') - ReportPortal.start_launch(cmd_args) - @root_node = Tree::TreeNode.new(SecureRandom.hex) - @current_group_node = @root_node + if ReportPortal::Settings.instance.attach_to_launch? + ReportPortal.launch_id = + if ReportPortal::Settings.instance.launch_id + ReportPortal::Settings.instance.launch_id + else + file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.tmpdir) + 'rp_launch_id.tmp') + File.read(file_path) + end + $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" + else + cmd_args = ARGV.map { |arg| arg.include?('rp_uuid=') ? 'rp_uuid=[FILTERED]' : arg }.join(' ') + ReportPortal.start_launch(cmd_args) + end end def example_group_started(group_notification) From 6e0a844b7804b74faef14fcc2e1a1e4142c8b5fa Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 12:53:22 +0100 Subject: [PATCH 04/14] Add attach to launch option for rspec --- lib/report_portal/rspec/formatter.rb | 36 +++++++++++++++++++++------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index dfd10e8..1f61b58 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -19,7 +19,7 @@ class Formatter def initialize(_output) ENV['REPORT_PORTAL_USED'] = 'true' @root_node = Tree::TreeNode.new(SecureRandom.hex) - @current_group_node = @root_node + @parent_item_node = @root_node end def start(_start_notification) @@ -55,16 +55,16 @@ def example_group_started(group_notification) if group_node.nil? p "Group node is nil for item #{item.inspect}" else - @current_group_node << group_node unless @current_group_node.nil? # make @current_group_node parent of group_node - @current_group_node = group_node + @parent_item_node << group_node unless @parent_item_node.nil? # make @current_group_node parent of group_node + @parent_item_node = group_node group_node.content.id = ReportPortal.start_item(group_node) end end def example_group_finished(_group_notification) - unless @current_group_node.nil? - ReportPortal.finish_item(@current_group_node.content) - @current_group_node = @current_group_node.parent + unless @parent_item_node.nil? + ReportPortal.finish_item(@parent_item_node.content) + @parent_item_node = @parent_item_node.parent end end @@ -85,7 +85,7 @@ def example_started(notification) if example_node.nil? p "Example node is nil for scenario #{ReportPortal.current_scenario.inspect}" else - @current_group_node << example_node + @parent_item_node << example_node example_node.content.id = ReportPortal.start_item(example_node) end end @@ -115,8 +115,26 @@ def message(notification) end end - def stop(_notification) - ReportPortal.finish_launch + def example_finished(desired_time) + ReportPortal.finish_item(@parent_item_node.content, nil, time_to_send(desired_time)) + end + + def close_all_children_of(root_node) + root_node.postordered_each do |node| + if !node.is_root? && !node.content.closed + ReportPortal.finish_item(node.content) + end + end + end + + def stop(_notification, desired_time = ReportPortal.now) + example_finished(desired_time) unless @parent_item_node.is_root? + + unless ReportPortal::Settings.instance.attach_to_launch? + close_all_children_of(@root_node) # Folder items are closed here as they can't be closed after finishing a feature + time_to_send = time_to_send(desired_time) + ReportPortal.finish_launch(time_to_send) + end end end end From f7b03052d5da6bfb6cb8947f1681a76e3de00da4 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 15:12:55 +0100 Subject: [PATCH 05/14] Fix --- lib/report_portal/rspec/formatter.rb | 2 +- lib/report_portal/tasks.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index 1f61b58..96e14cd 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -28,7 +28,7 @@ def start(_start_notification) if ReportPortal::Settings.instance.launch_id ReportPortal::Settings.instance.launch_id else - file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.tmpdir) + 'rp_launch_id.tmp') + file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.pwd) + 'rp_launch_id.tmp') File.read(file_path) end $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" diff --git a/lib/report_portal/tasks.rb b/lib/report_portal/tasks.rb index 9acb5ba..77a19e2 100644 --- a/lib/report_portal/tasks.rb +++ b/lib/report_portal/tasks.rb @@ -8,10 +8,10 @@ task :start_launch do description = ENV['description'] || ReportPortal::Settings.instance.description file_to_write_launch_id = ENV['file_for_launch_id'] || ReportPortal::Settings.instance.file_with_launch_id - file_to_write_launch_id ||= Pathname(Dir.tmpdir) + 'rp_launch_id.tmp' + file_to_write_launch_id ||= Pathname(Dir.pwd) + 'rp_launch_id.tmp' launch_id = ReportPortal.start_launch(description) File.write(file_to_write_launch_id, launch_id) - puts launch_id + return launch_id end desc 'Finish launch in Report Portal (for use with attach_to_launch formatter mode)' From 3de3e0540bf7e0198633d8a0d141495c12217c24 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 20:56:30 +0100 Subject: [PATCH 06/14] Fix --- lib/report_portal/tasks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/report_portal/tasks.rb b/lib/report_portal/tasks.rb index 77a19e2..b6bafcb 100644 --- a/lib/report_portal/tasks.rb +++ b/lib/report_portal/tasks.rb @@ -11,7 +11,7 @@ file_to_write_launch_id ||= Pathname(Dir.pwd) + 'rp_launch_id.tmp' launch_id = ReportPortal.start_launch(description) File.write(file_to_write_launch_id, launch_id) - return launch_id + launch_id end desc 'Finish launch in Report Portal (for use with attach_to_launch formatter mode)' From 4a639a475d05c8ebd18321698a947905c43ba749 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 22:51:09 +0100 Subject: [PATCH 07/14] Refactor settings --- lib/report_portal/settings.rb | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index 9ce04de..5fa2f95 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -6,13 +6,8 @@ class Settings include Singleton def initialize - filename = ENV.fetch('rp_config') do - glob = Dir.glob('{,.config/,config/}report{,-,_}portal{.yml,.yaml}') - p "Multiple configuration files found for ReportPortal. Using the first one: #{glob.first}" if glob.size > 1 - glob.first - end - - @properties = filename.nil? ? {} : YAML.load_file(filename) + @filename = get_settings_file + @properties = @filename.nil? ? {} : YAML.load_file(@filename) keys = { 'uuid' => true, 'endpoint' => true, @@ -56,8 +51,22 @@ def attach_to_launch? formatter_modes.include?('attach_to_launch') end + def file_with_launch_id? + file_with_launch_id do + + end + end + private + def get_settings_file + ENV.fetch('rp_config') do + glob = Dir.glob('{,.config/,config/}report{,-,_}portal{.yml,.yaml}') + p "Multiple configuration files found for ReportPortal. Using the first one: #{glob.first}" if glob.size > 1 + glob.first + end + end + def setting(key) env_variable_name = env_variable_name(key) return YAML.safe_load(ENV[env_variable_name.upcase]) if ENV.key?(env_variable_name.upcase) From e8037580c9fb6967c10671ed23624a2a71c04ae8 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Wed, 29 Nov 2023 22:54:53 +0100 Subject: [PATCH 08/14] Refactor --- lib/report_portal/rspec/formatter.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index 96e14cd..ce07e46 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -136,6 +136,14 @@ def stop(_notification, desired_time = ReportPortal.now) ReportPortal.finish_launch(time_to_send) end end + + def time_to_send(desired_time) + time_to_send = desired_time + if time_to_send <= @last_used_time + time_to_send = @last_used_time + 1 + end + @last_used_time = time_to_send + end end end end From 985fdca6625d807c198bd82497f4ebd81e326a53 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 14:28:11 +0100 Subject: [PATCH 09/14] Fix --- lib/report_portal/rspec/formatter.rb | 1 + lib/report_portal/settings.rb | 22 ++++++++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index ce07e46..504939d 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -20,6 +20,7 @@ def initialize(_output) ENV['REPORT_PORTAL_USED'] = 'true' @root_node = Tree::TreeNode.new(SecureRandom.hex) @parent_item_node = @root_node + @last_used_time = 0 end def start(_start_notification) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index 5fa2f95..d757047 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -51,22 +51,8 @@ def attach_to_launch? formatter_modes.include?('attach_to_launch') end - def file_with_launch_id? - file_with_launch_id do - - end - end - private - def get_settings_file - ENV.fetch('rp_config') do - glob = Dir.glob('{,.config/,config/}report{,-,_}portal{.yml,.yaml}') - p "Multiple configuration files found for ReportPortal. Using the first one: #{glob.first}" if glob.size > 1 - glob.first - end - end - def setting(key) env_variable_name = env_variable_name(key) return YAML.safe_load(ENV[env_variable_name.upcase]) if ENV.key?(env_variable_name.upcase) @@ -76,6 +62,14 @@ def setting(key) @properties[key] end + def get_settings_file + ENV.fetch('rp_config') do + glob = Dir.glob('{,.config/,config/}report{,-,_}portal{.yml,.yaml}') + p "Multiple configuration files found for ReportPortal. Using the first one: #{glob.first}" if glob.size > 1 + glob.first + end + end + def env_variable_name(key) 'rp_' + key end From 5498b541069c5786ca5ba135bcf3f3ed20b5306d Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 14:50:05 +0100 Subject: [PATCH 10/14] Fix --- lib/report_portal/settings.rb | 1 + lib/report_portal/tasks.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index d757047..3e0f570 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -1,5 +1,6 @@ require 'yaml' require 'singleton' +require 'pry' module ReportPortal class Settings diff --git a/lib/report_portal/tasks.rb b/lib/report_portal/tasks.rb index b6bafcb..a0b56ef 100644 --- a/lib/report_portal/tasks.rb +++ b/lib/report_portal/tasks.rb @@ -2,6 +2,7 @@ require 'pathname' require 'tempfile' require_relative '../reportportal' +require 'pry' namespace :reportportal do desc 'Start launch in Report Portal and print its id to $stdout (for use with attach_to_launch formatter mode)' @@ -21,7 +22,6 @@ puts "Launch id isn't provided. Provide it either via RP_LAUNCH_ID or RP_FILE_WITH_LAUNCH_ID environment variables" if !launch_id && !file_with_launch_id puts 'Both RP_LAUNCH_ID and RP_FILE_WITH_LAUNCH_ID are provided via environment variables' if launch_id && file_with_launch_id ReportPortal.launch_id = launch_id || File.read(file_with_launch_id) - ReportPortal.close_child_items(nil) ReportPortal.finish_launch end end From 21558f59d6ed851272fbe0dfe9c0730b7f9293bc Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 16:26:04 +0100 Subject: [PATCH 11/14] Fix --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8dde7f7..15b11e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ Gemfile.lock config/report_portal.yaml +rp_launch_id.tmp From b05dd2bd0622b8247119e0ddf5b50a480aa6a547 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 16:26:53 +0100 Subject: [PATCH 12/14] Fixed --- lib/report_portal/tasks.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/report_portal/tasks.rb b/lib/report_portal/tasks.rb index a0b56ef..c74250a 100644 --- a/lib/report_portal/tasks.rb +++ b/lib/report_portal/tasks.rb @@ -2,7 +2,6 @@ require 'pathname' require 'tempfile' require_relative '../reportportal' -require 'pry' namespace :reportportal do desc 'Start launch in Report Portal and print its id to $stdout (for use with attach_to_launch formatter mode)' From 44aa7df71aacfe41e7198ebec418c46eb43533e5 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 22:49:27 +0100 Subject: [PATCH 13/14] Refactor settings --- lib/report_portal/cucumber/report.rb | 9 +-------- lib/report_portal/rspec/formatter.rb | 9 +-------- lib/report_portal/settings.rb | 13 +++++++++++++ 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/report_portal/cucumber/report.rb b/lib/report_portal/cucumber/report.rb index 005ea88..10b7d18 100644 --- a/lib/report_portal/cucumber/report.rb +++ b/lib/report_portal/cucumber/report.rb @@ -23,14 +23,7 @@ def initialize def start_launch if ReportPortal::Settings.instance.attach_to_launch? - ReportPortal.launch_id = - if ReportPortal::Settings.instance.launch_id - ReportPortal::Settings.instance.launch_id - else - file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.tmpdir) + 'rp_launch_id.tmp') - File.read(file_path) - end - $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" + ReportPortal.launch_id = ReportPortal::Settings.get_launch_id else cmd_args = ARGV.map { |arg| arg.include?('rp_uuid=') ? 'rp_uuid=[FILTERED]' : arg }.join(' ') ReportPortal.start_launch(cmd_args) diff --git a/lib/report_portal/rspec/formatter.rb b/lib/report_portal/rspec/formatter.rb index 504939d..e674d81 100644 --- a/lib/report_portal/rspec/formatter.rb +++ b/lib/report_portal/rspec/formatter.rb @@ -25,14 +25,7 @@ def initialize(_output) def start(_start_notification) if ReportPortal::Settings.instance.attach_to_launch? - ReportPortal.launch_id = - if ReportPortal::Settings.instance.launch_id - ReportPortal::Settings.instance.launch_id - else - file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.pwd) + 'rp_launch_id.tmp') - File.read(file_path) - end - $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" + ReportPortal.launch_id = ReportPortal::Settings.get_launch_id else cmd_args = ARGV.map { |arg| arg.include?('rp_uuid=') ? 'rp_uuid=[FILTERED]' : arg }.join(' ') ReportPortal.start_launch(cmd_args) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index 3e0f570..c2f3f7f 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -52,6 +52,19 @@ def attach_to_launch? formatter_modes.include?('attach_to_launch') end + def get_launch_id + begin + if ReportPortal::Settings.instance.launch_id + ReportPortal::Settings.instance.launch_id + else + file_path = ReportPortal::Settings.instance.file_with_launch_id || (Pathname(Dir.pwd) + 'rp_launch_id.tmp') + File.read(file_path) + end + rescue ArgumentError + raise "ReportPortal: Define environment variable 'launch_id' or 'file_with_launch_id' " + end + end + private def setting(key) From 93dc9104a262c571a488175199eb5f2b631fd1f3 Mon Sep 17 00:00:00 2001 From: "yan_ramanovich@epam.com" Date: Thu, 30 Nov 2023 22:59:39 +0100 Subject: [PATCH 14/14] Remove pry from settings --- lib/report_portal/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index c2f3f7f..d8533ac 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -1,6 +1,6 @@ require 'yaml' require 'singleton' -require 'pry' + module ReportPortal class Settings