serpapi / turbo_tests

Run RSpec tests on multiple cores. Like parallel_tests but with incremental summarized output. Originally extracted from the Discourse and Rubygems source code.
https://rubygems.org/gems/turbo_tests
MIT License
173 stars 26 forks source link

fix: support reporting extra failure lines #25

Closed ilyazub closed 1 year ago

ilyazub commented 1 year ago

Ported from Discourse: https://github.com/discourse/discourse/pull/19637/

Example usage:

# spec_helper.rb
config.after(:each) do |example|
  lines = example.metadata[:extra_failure_lines] ||= []

  lines << "Test info in extra_failure_lines"
end

RSpec adds extra_failure_lines to output: https://github.com/rspec/rspec-core/blob/79ec0fd5b5ebd13031a10960f293b8a4a43cb734/lib/rspec/core/formatters/exception_presenter.rb#L161