Class: Minitest::Reporters::RedisReporter::Summary
Instance Method Summary
collapse
Methods inherited from Base
#completed?, #error_reports, #initialize, #processed, #total
Instance Method Details
#assertions ⇒ Object
148
149
150
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 148
def assertions
fetch_summary['assertions'].to_i
end
|
#errors ⇒ Object
144
145
146
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 144
def errors
fetch_summary['errors'].to_i
end
|
#failures ⇒ Object
140
141
142
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 140
def failures
fetch_summary['failures'].to_i
end
|
#record ⇒ Object
136
137
138
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 136
def record(*)
raise NotImplementedError
end
|
#report ⇒ Object
124
125
126
127
128
129
130
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 124
def report
puts aggregates
errors = error_reports
puts errors
errors.empty?
end
|
#requeues ⇒ Object
156
157
158
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 156
def requeues
fetch_summary['requeues'].to_i
end
|
#skips ⇒ Object
152
153
154
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 152
def skips
fetch_summary['skips'].to_i
end
|
#success? ⇒ Boolean
132
133
134
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 132
def success?
errors == 0 && failures == 0
end
|
#total_time ⇒ Object
160
161
162
|
# File 'lib/minitest/reporters/redis_reporter.rb', line 160
def total_time
fetch_summary['total_time'].to_f
end
|