lib/atp/formatters/basic.rb in atp-0.4.1 vs lib/atp/formatters/basic.rb in atp-0.4.2
- old
+ new
@@ -8,10 +8,22 @@
process(node)
@output
end
def on_test(node)
- @output += node.find(:name).value
+ if node.find(:name)
+ @output += node.find(:name).value
+ else
+ @output += node.find(:object).value['Test']
+ end
+ @output += ' F' if node.find(:failed)
+ @output += "\n"
+ end
+
+ def on_set_result(node)
+ @output += node.to_a[0].upcase
+ @output += " #{node.find(:bin).value}" if node.find(:bin)
+ @output += " #{node.find(:softbin).value}" if node.find(:softbin)
@output += "\n"
end
end
end
end