Class: Test::Unit::ProcessTestResult
- Inherits:
-
Object
- Object
- Test::Unit::ProcessTestResult
- Defined in:
- lib/test/unit/process-test-result.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#add_assertion ⇒ Object
Records an individual assertion.
- #add_error(error) ⇒ Object
- #add_failure(failure) ⇒ Object
- #add_notification(notification) ⇒ Object
- #add_omission(omission) ⇒ Object
- #add_pass ⇒ Object
- #add_pending(pending) ⇒ Object
- #add_run ⇒ Object
-
#initialize(output) ⇒ ProcessTestResult
constructor
A new instance of ProcessTestResult.
Constructor Details
#initialize(output) ⇒ ProcessTestResult
Returns a new instance of ProcessTestResult.
16 17 18 |
# File 'lib/test/unit/process-test-result.rb', line 16 def initialize(output) @output = output end |
Class Method Details
.test_result? ⇒ Boolean
11 12 13 |
# File 'lib/test/unit/process-test-result.rb', line 11 def test_result? true end |
Instance Method Details
#add_assertion ⇒ Object
Records an individual assertion.
29 30 31 |
# File 'lib/test/unit/process-test-result.rb', line 29 def add_assertion send_result(__method__) end |
#add_error(error) ⇒ Object
33 34 35 |
# File 'lib/test/unit/process-test-result.rb', line 33 def add_error(error) send_result(__method__, error) end |
#add_failure(failure) ⇒ Object
37 38 39 |
# File 'lib/test/unit/process-test-result.rb', line 37 def add_failure(failure) send_result(__method__, failure) end |
#add_notification(notification) ⇒ Object
49 50 51 |
# File 'lib/test/unit/process-test-result.rb', line 49 def add_notification(notification) send_result(__method__, notification) end |
#add_omission(omission) ⇒ Object
45 46 47 |
# File 'lib/test/unit/process-test-result.rb', line 45 def add_omission(omission) send_result(__method__, omission) end |
#add_pass ⇒ Object
24 25 26 |
# File 'lib/test/unit/process-test-result.rb', line 24 def add_pass send_result(__method__) end |
#add_pending(pending) ⇒ Object
41 42 43 |
# File 'lib/test/unit/process-test-result.rb', line 41 def add_pending(pending) send_result(__method__, pending) end |
#add_run ⇒ Object
20 21 22 |
# File 'lib/test/unit/process-test-result.rb', line 20 def add_run send_result(__method__) end |