Sha256: 0bee573c5d61d589d4aaa31b9962726c424d65f45af5ea2a7c83a171beea5c91
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
module ATP module Formatters # Outputs the given AST to something resembling an ATE datalog, # this can optionally be rendered to a file or the console (the default). class Datalog < Formatter def on_flow(node) puts 'Number Result Test Name Pin Channel Low Measured High Force Loc' process_all(node.children) end def on_test(node) t = node.to_h str = "#{t[:number]}".ljust(11) str += "#{t[:failed] ? 'FAIL' : 'PASS'}".ljust(9) str += "#{t[:name][0]}".ljust(20) puts str end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atp-0.2.1 | lib/atp/formatters/datalog.rb |
atp-0.2.0 | lib/atp/formatters/datalog.rb |