Class: RspecLogFormatter::AnalyzerFormatter

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/rspec_log_formatter/analyzer_formatter.rb

Constant Summary collapse

FILENAME =
"rspec.history"

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AnalyzerFormatter

Returns a new instance of AnalyzerFormatter.



8
9
10
# File 'lib/rspec_log_formatter/analyzer_formatter.rb', line 8

def initialize(*args)
  super
end

Instance Method Details

#dump_summary(_, _, _, _) ⇒ Object



13
14
15
16
17
# File 'lib/rspec_log_formatter/analyzer_formatter.rb', line 13

def dump_summary(_,_,_,_)
  output.puts RspecLogFormatter::Analysis::PrettyPrinter.new(
    RspecLogFormatter::Analysis::Analyzer.new.analyze(FILENAME)
  )
end