Module: Test::Unit::FailureHandler
- Included in:
- TestCase
- Defined in:
- lib/test/unit/failure.rb,
lib/test/unit/failure.rb
Instance Method Summary collapse
-
#add_failure(message, backtrace, options = {}) ⇒ void
Report a failure.
Instance Method Details
#add_failure(message, backtrace, options = {}) ⇒ void
This method returns an undefined value.
Report a failure.
This is a public API for developers who extend test-unit.
106 107 108 109 110 111 112 113 114 |
# File 'lib/test/unit/failure.rb', line 106 def add_failure(, backtrace, ={}) = { :method_name => @method_name, :source_location => self[:source_location], } failure = Failure.new(name, filter_backtrace(backtrace), , .merge()) current_result.add_failure(failure) end |