Class: Minitest::Reporters::RedisReporter::Summary

Inherits:
Base
  • Object
show all
Includes:
ANSI::Code
Defined in:
lib/minitest/reporters/redis_reporter.rb

Instance Method Summary collapse

Methods inherited from Base

#completed?, #error_reports, #initialize, #processed, #total

Constructor Details

This class inherits a constructor from Minitest::Reporters::RedisReporter::Base

Instance Method Details

#assertions ⇒ Object



110
111
112
# File 'lib/minitest/reporters/redis_reporter.rb', line 110

def assertions
  fetch_summary['assertions'].to_i
end

#errors ⇒ Object



106
107
108
# File 'lib/minitest/reporters/redis_reporter.rb', line 106

def errors
  fetch_summary['errors'].to_i
end

#failures ⇒ Object



102
103
104
# File 'lib/minitest/reporters/redis_reporter.rb', line 102

def failures
  fetch_summary['failures'].to_i
end

#record ⇒ Object

Raises:

  • (NotImplementedError)


98
99
100
# File 'lib/minitest/reporters/redis_reporter.rb', line 98

def record(*)
  raise NotImplementedError
end

#report(io: STDOUT) ⇒ Object



90
91
92
93
94
95
96
# File 'lib/minitest/reporters/redis_reporter.rb', line 90

def report(io: STDOUT)
  io.puts aggregates
  errors = error_reports
  io.puts errors

  errors.empty?
end

#requeues ⇒ Object



118
119
120
# File 'lib/minitest/reporters/redis_reporter.rb', line 118

def requeues
  fetch_summary['requeues'].to_i
end

#skips ⇒ Object



114
115
116
# File 'lib/minitest/reporters/redis_reporter.rb', line 114

def skips
  fetch_summary['skips'].to_i
end

#total_time ⇒ Object



122
123
124
# File 'lib/minitest/reporters/redis_reporter.rb', line 122

def total_time
  fetch_summary['total_time'].to_f
end