Run RSpec tests on multiple cores. Like parallel_tests but with incremental summarized output. Originally extracted from the Discourse and Rubygems source code.
# spec_helper.rb
config.after(:each) do |example|
lines = example.metadata[:extra_failure_lines] ||= []
lines << "Test info in extra_failure_lines"
end
Ported from Discourse: https://github.com/discourse/discourse/pull/19637/
Example usage:
RSpec adds
extra_failure_lines
to output: https://github.com/rspec/rspec-core/blob/79ec0fd5b5ebd13031a10960f293b8a4a43cb734/lib/rspec/core/formatters/exception_presenter.rb#L161