Sha256: d523efd9e0b786d71e087ef47aa621fdfb379434a7b7fe3b2960ffa6a7fa5bd1
Contents?: true
Size: 649 Bytes
Versions: 9
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true # rubocop:todo all class JsonExtFormatter < RSpec::Core::Formatters::JsonFormatter RSpec::Core::Formatters.register self, :message, :dump_summary, :dump_profile, :stop, :seed, :close def format_example(example) super.tap do |hash| # Time format is chosen to be the same as driver's log entries hash[:started_at] = example.execution_result.started_at.strftime('%Y-%m-%d %H:%M:%S.%L %z') hash[:finished_at] = example.execution_result.finished_at.strftime('%Y-%m-%d %H:%M:%S.%L %z') hash[:sdam_log_entries] = SdamFormatterIntegration.example_log_entries(example.id) end end end
Version data entries
9 entries across 9 versions & 2 rubygems