ac8fe85810
Upcoming commits will add a progressive reporter that does NOT require a rewindable output. Usefull for imperfect terminal emulations as on CI etc.
47 lines
729 B
Ruby
47 lines
729 B
Ruby
module Mutant
|
|
# Abstract base class for reporters
|
|
class Reporter
|
|
include AbstractType
|
|
|
|
# Write warning message
|
|
#
|
|
# @param [String] message
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :warn
|
|
|
|
# Report start
|
|
#
|
|
# @param [Env] env
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :start
|
|
|
|
# Report collector state
|
|
#
|
|
# @param [Runner::Collector] collector
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :report
|
|
|
|
# Report progress on object
|
|
#
|
|
# @param [Object] object
|
|
#
|
|
# @return [self]
|
|
#
|
|
# @api private
|
|
#
|
|
abstract_method :progress
|
|
|
|
end # Reporter
|
|
end # Mutant
|