module TestRescueRSpecReporter
Public Instance Methods
notify_non_example_exception(exception, context_description)
click to toggle source
Calls superclass method
# File lib/test_rescue_agent/rspec_configuration.rb, line 19 def notify_non_example_exception(exception, context_description) example = RSpec::Core::Example.new(RSpec::Core::AnonymousExampleGroup, context_description, {}) presenter = RSpec::Core::Formatters::ExceptionPresenter.new(exception, example, indentation: 0) failure_details = [presenter.colorized_message_lines, presenter.colorized_formatted_backtrace].flatten.join("\n") test_rescue_client.create_file_run_exception( ENV["SUITE_RUN_ID"], ENV["FILE_RUN_ID"], description: example.full_description, location: example.location, failure_details: failure_details, ) super(exception, context_description) end