Class: Cucumber::Formatter::Rerun

Inherits:
MessageBuilder show all
Defined in:
lib/cucumber/formatter/rerun.rb

Instance Method Summary collapse

Methods inherited from MessageBuilder

#attach

Methods included from Io

ensure_dir, ensure_file, ensure_io, included, io?, url?

Constructor Details

#initialize(config) ⇒ Rerun

Returns a new instance of Rerun.



9
10
11
12
# File 'lib/cucumber/formatter/rerun.rb', line 9

def initialize(config)
  @io = ensure_io(config.out_stream, config.error_stream)
  super(config)
end

Instance Method Details

#output_envelope(envelope) ⇒ Object



14
15
16
17
# File 'lib/cucumber/formatter/rerun.rb', line 14

def output_envelope(envelope)
  @repository.update(envelope)
  finish_report if envelope.test_run_finished
end