Class: Minitest::Reporters::SpoutReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Minitest::Reporters::SpoutReporter
- Includes:
- RelativePosition
- Defined in:
- lib/spout/tests.rb
Instance Method Summary collapse
Instance Method Details
#record(test) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/spout/tests.rb', line 33 def record(test) super if !test.skipped? && test.failure print " " print_colored_status(test) print " #{test.name}" puts print " " print test.failure.to_s.gsub("\n", "\n ") puts puts end end |
#report ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/spout/tests.rb', line 20 def report super puts format("Finished in %.5f seconds.", total_time) puts print format("%d tests", count).white print format(", %d assertions, ", assertions) color = failures.zero? && errors.zero? ? :green : :red print format("%d failures, %d errors, ", failures, errors).send(color) print format("%d skips", skips).yellow puts puts end |
#start ⇒ Object
14 15 16 17 18 |
# File 'lib/spout/tests.rb', line 14 def start super puts "Started spout tests".white puts end |