Sha256: 9450caa7d8cefb8f822878fdc0e3aaa163e1b54e9994cd9764314f70f6e35492

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

module ATP
  module Formatters
    # Returns the executed flow as a string of test names. This
    # is mainly intended to be used for testing the runner.
    class Basic < Formatter
      def format(node, options = {})
        @output = ''
        process(node)
        @output
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
atp-0.4.1 lib/atp/formatters/basic.rb
atp-0.4.0 lib/atp/formatters/basic.rb
atp-0.3.3 lib/atp/formatters/basic.rb
atp-0.3.2 lib/atp/formatters/basic.rb
atp-0.3.1 lib/atp/formatters/basic.rb
atp-0.3.0 lib/atp/formatters/basic.rb