Class: ATP::Formatters::Basic

Inherits:
ATP::Formatter show all
Defined in:
lib/atp/formatters/basic.rb

Overview

Returns the executed flow as a string of test names. This is mainly intended to be used for testing the runner.

Instance Method Summary collapse

Methods inherited from ATP::Formatter

format, run, run_and_format

Methods inherited from Processor

#handler_missing, #n, #n0, #n1, #process, #run

Instance Method Details

#format(node, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/atp/formatters/basic.rb', line 6

def format(node, options = {})
  @output = ''
  process(node)
  @output
end

#on_test(node) ⇒ Object



12
13
14
15
# File 'lib/atp/formatters/basic.rb', line 12

def on_test(node)
  @output += node.find(:name).value
  @output += "\n"
end