Module: Maxitest::VerboseBacktrace

Included in:
Minitest
Defined in:
lib/maxitest/verbose_backtrace.rb

Defined Under Namespace

Classes: NullFilter

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.verboseObject

Returns the value of attribute verbose.



10
11
12
# File 'lib/maxitest/verbose_backtrace.rb', line 10

def verbose
  @verbose
end

Instance Method Details

#plugin_maxitest_verbose_backtrace_init(options) ⇒ Object



13
14
15
16
17
18
# File 'lib/maxitest/verbose_backtrace.rb', line 13

def plugin_maxitest_verbose_backtrace_init(options)
  return unless options[:verbose]
  Maxitest::VerboseBacktrace.verbose = true
  Minitest.backtrace_filter = Maxitest::VerboseBacktrace::NullFilter
  Rails.backtrace_cleaner.remove_silencers! if defined?(Rails) && Rails.respond_to?(:backtrace_cleaner)
end