2012-08-15 22:10:54 -04:00
|
|
|
module Mutant
|
2013-04-20 20:20:18 -04:00
|
|
|
# Abstract base class for reporters
|
2012-08-15 22:10:54 -04:00
|
|
|
class Reporter
|
2014-07-17 09:59:25 -04:00
|
|
|
include AbstractType
|
2012-08-15 22:10:54 -04:00
|
|
|
|
2014-06-30 09:21:19 -04:00
|
|
|
# Write warning message
|
|
|
|
#
|
|
|
|
# @param [String] message
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
abstract_method :warn
|
|
|
|
|
2014-08-10 18:09:29 -04:00
|
|
|
# Report start
|
|
|
|
#
|
|
|
|
# @param [Env] env
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
abstract_method :start
|
|
|
|
|
2014-07-17 09:59:25 -04:00
|
|
|
# Report collector state
|
2012-08-15 22:10:54 -04:00
|
|
|
#
|
2014-07-17 09:59:25 -04:00
|
|
|
# @param [Runner::Collector] collector
|
2012-08-15 22:10:54 -04:00
|
|
|
#
|
|
|
|
# @return [self]
|
2013-04-20 20:20:18 -04:00
|
|
|
abstract_method :report
|
2012-08-15 22:10:54 -04:00
|
|
|
|
2014-05-12 09:48:15 -04:00
|
|
|
# Report progress on object
|
|
|
|
#
|
|
|
|
# @param [Object] object
|
|
|
|
#
|
|
|
|
# @return [self]
|
|
|
|
abstract_method :progress
|
|
|
|
|
2015-11-15 15:16:42 -05:00
|
|
|
# The reporter delay
|
|
|
|
#
|
|
|
|
# @return [Float]
|
|
|
|
abstract_method :delay
|
|
|
|
|
2013-06-14 14:54:02 -04:00
|
|
|
end # Reporter
|
|
|
|
end # Mutant
|