class GraphQL::Autotest::Report

Constants

Execution

Public Instance Methods

error?() click to toggle source
# File lib/graphql/autotest/report.rb, line 14
def error?
  !errored_executions.empty?
end
errored_executions() click to toggle source
# File lib/graphql/autotest/report.rb, line 18
def errored_executions
  executions.select { |e| e.result['errors'] }
end
raise_if_error!() click to toggle source
# File lib/graphql/autotest/report.rb, line 22
def raise_if_error!
  raise errored_executions.map(&:to_error_message).join("\n\n") if error?
end