DEV: Include exception details for each test in flaky tests report (#24892)

Why this change?

The exception message and name is useful when analyzing why a test
failed.
This commit is contained in:
Alan Guo Xiang Tan
2023-12-14 11:11:11 +08:00
committed by GitHub
parent 53d40672a7
commit c437b9f5f2
2 changed files with 15 additions and 0 deletions

View File

@ -79,6 +79,9 @@ RSpec.describe TurboTests::Flaky::Manager do
"message_lines" =>
"Failure/Error: Unable to infer file and line number from backtrace\n\nStandardError:\n some error\n\n [Screenshot Image]: /some/path/to/screenshot.png",
"description" => "rspec example 1",
"exception_message" =>
"some error\n\n[Screenshot Image]: /some/path/to/screenshot.png",
"exception_name" => "StandardError",
"backtrace" => ["some backtrace"],
"failure_screenshot_path" => "/some/path/to/screenshot.png",
"location_rerun_argument" => "./spec/lib/turbo_tests/flaky/manager_spec.rb:7",
@ -88,6 +91,8 @@ RSpec.describe TurboTests::Flaky::Manager do
"message_lines" =>
"Failure/Error: Unable to infer file and line number from backtrace\n\nStandardError:\n some error",
"description" => "rspec example 2",
"exception_message" => "some error",
"exception_name" => "StandardError",
"backtrace" => ["some backtrace"],
"failure_screenshot_path" => nil,
"location_rerun_argument" => "./spec/lib/turbo_tests/flaky/manager_spec.rb:22",