lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.13 vs lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.14

- old
+ new

@@ -56,11 +56,11 @@ def send_header @session.send_message({ repo_url: @working_copy.repo_url, branch: @working_copy.branch, rev: @working_copy.rev, - group: get_run_id, + build_id: get_build_number, info: Info.new.to_h }) end def send_step_result(path, line, status) @@ -79,11 +79,11 @@ mime_type: 'application/vnd.cucumber-pro.test-case-result+json', body: { status: status } }) end - def get_run_id - SecureRandom.hex + def get_build_number + Pro.config.build_number || SecureRandom.hex end end end