Method: Inspec::RunnerRspec#report

Defined in:
lib/inspec/runner_rspec.rb

#reportHash

Provide an output hash of the run’s report

Returns:

  • (Hash)

    a run’s output hash



83
84
85
86
87
# File 'lib/inspec/runner_rspec.rb', line 83

def report
  reporter = @formatter || RSpec.configuration.formatters[0]
  return nil if reporter.nil? || !reporter.respond_to?(:output_hash)
  reporter.output_hash
end