Class: Minitest::Reporter
- Inherits:
-
AbstractReporter
- Object
- AbstractReporter
- Minitest::Reporter
- Defined in:
- lib/minitest.rb,
lib/minitest/parallel_each.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#io ⇒ Object
The IO used to report.
-
#options ⇒ Object
Command-line options for this run.
Class Method Summary collapse
-
.synchronize ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(io = $stdout, options = {}) ⇒ Reporter
constructor
:nodoc:.
- #record(result) ⇒ Object
- #simple_record ⇒ Object
Methods inherited from AbstractReporter
Constructor Details
#initialize(io = $stdout, options = {}) ⇒ Reporter
:nodoc:
408 409 410 411 |
# File 'lib/minitest.rb', line 408 def initialize io = $stdout, = {} # :nodoc: self.io = io self. = end |
Instance Attribute Details
#options ⇒ Object
Command-line options for this run.
406 407 408 |
# File 'lib/minitest.rb', line 406 def @options end |
Class Method Details
.synchronize ⇒ Object
:nodoc:
91 92 93 94 95 96 97 |
# File 'lib/minitest/parallel_each.rb', line 91 def self.synchronize # :nodoc: if @mutex then # see parallel_each.rb @mutex.synchronize { yield } else yield end end |
Instance Method Details
#record(result) ⇒ Object
101 102 103 104 105 |
# File 'lib/minitest/parallel_each.rb', line 101 def record result Reporter.synchronize do simple_record result end end |
#simple_record ⇒ Object
99 |
# File 'lib/minitest/parallel_each.rb', line 99 alias :simple_record :record |