Method: QAT::Formatter::Scenario::Name#on_test_run_finished

Defined in:
lib/qat/formatter/scenario/name.rb

#on_test_run_finished(_event) ⇒ Object

Since:

  • 0.1.0



49
50
51
52
53
54
55
56
57
58
# File 'lib/qat/formatter/scenario/name.rb', line 49

def on_test_run_finished(_event)
  if @to_file
    content = {
      scenarios: @scenarios,
      repeated:  @repeated
    }
    @io.write (JSON.pretty_generate(content))
    @io.flush
  end
end