not ok 2 - omg t3h sooper test!!1!
--- TAP diagnostics
file: foo.t
Why aren't we commenting the YAML block so that it's compatible with
current TAP parsers? I'm thinking something like this:
not ok 2 - ensure that foo is equal to bar
# --- !!tap/diagnostics
# file: foo.t
# line: 42
# got:
# - !!perl/foobar
# key: value
# expected:
# - !!perl/foobar
# key: ~
# etc: (and so on)
The commented section is raw YAML goodness, AND this format is
compatible with current TAP parsers. I'm liking this a lot, especially
since I can use it Right Now (tm) by doing diag(Dump($data)).
Any reason this shouldn't be the standard? It's easy to parse, it's easy
to read.
Would it be acecptable if I patched Test::More to start outputing it's
expected/got messages in YAML instead of a plain text format?
Regards,
Jonathan Rockway