diff --git a/README.md b/README.md index 98f8ec8..de3aac3 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Supported settings: - uuid - uuid of the ReportPortal user - endpoint - URI of ReportPortal web service where requests should be sent - launch - launch name + - description - custom launch description - project - project name - tags - array of tags for the launch - formatter_modes - array of modes that modify formatter behavior, see [formatter modes](#formatter_modes) diff --git a/lib/report_portal/cucumber/report.rb b/lib/report_portal/cucumber/report.rb index f32ca39..508d0cb 100644 --- a/lib/report_portal/cucumber/report.rb +++ b/lib/report_portal/cucumber/report.rb @@ -53,8 +53,9 @@ def start_launch(desired_time = ReportPortal.now) end $stdout.puts "Attaching to launch #{ReportPortal.launch_id}" else - cmd_args = ARGV.map { |arg| arg.gsub(/rp_uuid=.+/, "rp_uuid=[FILTERED]") }.join(' ') - ReportPortal.start_launch(cmd_args, time_to_send(desired_time)) + 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)) end end diff --git a/lib/report_portal/settings.rb b/lib/report_portal/settings.rb index 60e54fd..b2aa82d 100644 --- a/lib/report_portal/settings.rb +++ b/lib/report_portal/settings.rb @@ -38,6 +38,7 @@ def initialize 'endpoint' => true, 'project' => true, 'launch' => true, + 'description' => false, 'tags' => false, 'is_debug' => false, 'disable_ssl_verification' => false,