Skip to content

Commit

Permalink
Merge pull request #15 from yuri-karpovich/master
Browse files Browse the repository at this point in the history
description option was added to config file
  • Loading branch information
abotalov authored Jul 28, 2017
2 parents cd3066d + 5244f9b commit 447d93b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions lib/report_portal/cucumber/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/report_portal/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def initialize
'endpoint' => true,
'project' => true,
'launch' => true,
'description' => false,
'tags' => false,
'is_debug' => false,
'disable_ssl_verification' => false,
Expand Down

0 comments on commit 447d93b

Please sign in to comment.