Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
draft!
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Apr 24, 2022
1 parent bc9bb2d commit 8510ae1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/rspec/core/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ def shared_context_metadata_behavior=(value)
# return [Integer]
add_setting :max_displayed_failure_line_count

# @macro add_setting
# Skip bactrace for pending examples.
# return [Boolean]
add_setting :skip_backtrace_for_pending_examples

# Determines which bisect runner implementation gets used to run subsets
# of the suite during a bisection. Your choices are:
#
Expand Down
6 changes: 4 additions & 2 deletions lib/rspec/core/formatters/exception_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,12 @@ def pending_options
]
}
elsif @execution_result.status == :pending
{
options = {
:message_color => RSpec.configuration.pending_color,
:detail_formatter => PENDING_DETAIL_FORMATTER
:detail_formatter => PENDING_DETAIL_FORMATTER,
}
options[:backtrace_formatter] = EmptyBacktraceFormatter if RSpec.configuration.skip_backtrace_for_pending_examples
options
end
end

Expand Down

0 comments on commit 8510ae1

Please sign in to comment.