Class: Minitest::DocumentationReporter
- Inherits:
-
Reporter
- Object
- Reporter
- Minitest::DocumentationReporter
- Defined in:
- lib/minitest/documentation.rb
Constant Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.color! ⇒ Object
17 18 19 |
# File 'lib/minitest/documentation.rb', line 17 def self.color! @color = true end |
.color? ⇒ Boolean
21 22 23 |
# File 'lib/minitest/documentation.rb', line 21 def self.color? @color ||= false end |
.documentation! ⇒ Object
9 10 11 |
# File 'lib/minitest/documentation.rb', line 9 def self.documentation! @documentation = true end |
.documentation? ⇒ Boolean
13 14 15 |
# File 'lib/minitest/documentation.rb', line 13 def self.documentation? @documentation ||= false end |
Instance Method Details
#record(result) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/minitest/documentation.rb', line 25 def record result output_klass_name result.class if self.class.documentation? print_colorized_progress result if self.class.color? if self.class.documentation? test = test_name result io.print " " io.puts stringify_test_name(test) end io.print NND end |