Class: Henitai::Reporter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/henitai/reporter.rb

Overview

Base class for all reporters.

Direct Known Subclasses

Dashboard, Html, Json, Terminal

Instance Method Summary collapse

Constructor Details

#initialize(config:, history_store: nil) ⇒ Base

Returns a new instance of Base.

Parameters:

  • history_store (MutantHistoryStore, nil) (defaults to: nil)

    accepted by every reporter for a uniform factory signature; only the JSON reporter uses it. Ignored elsewhere.



45
46
47
48
# File 'lib/henitai/reporter.rb', line 45

def initialize(config:, history_store: nil)
  @config = config
  @history_store = history_store
end

Instance Method Details

#report(result) ⇒ Object

Parameters:

Raises:

  • (NotImplementedError)


51
52
53
# File 'lib/henitai/reporter.rb', line 51

def report(result)
  raise NotImplementedError, "#{self.class}#report must be implemented"
end