lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.6 vs lib/cucumber/pro/formatter.rb in cucumber-pro-0.0.7
- old
+ new
@@ -1,6 +1,7 @@
require 'cucumber/pro/scm'
+require 'cucumber/pro/info'
require 'securerandom'
module Cucumber
module Pro
@@ -55,11 +56,12 @@
scm = Scm::Repo.find
@session.send({
repo_url: scm.remote,
branch: scm.branch,
rev: scm.rev,
- group: get_run_id
+ group: get_run_id,
+ info: Info.new.to_h
})
end
def send_step_result(path, line, status)
@session.send({
@@ -78,10 +80,10 @@
body: { status: status }
})
end
def get_run_id
- SecureRandom.hex
+ SecureRandom.hex
end
end
end