class RSpec::Buildkite::Analytics::Reporter
Public Class Methods
new(output)
click to toggle source
# File lib/rspec/buildkite/analytics/reporter.rb, line 5 def initialize(output) @output = output end
Public Instance Methods
handle_example(notification)
click to toggle source
# File lib/rspec/buildkite/analytics/reporter.rb, line 9 def handle_example(notification) example = notification.example trace = RSpec::Buildkite::Analytics.uploader.traces.find do |trace| example.id == trace.example.id end if trace trace.example = example RSpec::Buildkite::Analytics.session&.write_result(trace) end end