Sha256: 23c07e52b19ad0e3d032e412690637e280c8c9f5fe2616e9622bae900eff2a1b

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 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.to_h[:name][0]
        @output += "\n"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atp-0.2.1 lib/atp/formatters/basic.rb
atp-0.2.0 lib/atp/formatters/basic.rb