Ovid wrote:
--- "Philippe Bruhat (BooK)" <[EMAIL PROTECTED]> wrote:
The biggest trouble I had was for diagnostics. I ended up considering
that diagnostics output after a test result belong to the test result
(as a comment to it), and that diagnostics appearing before the first
test result are "global" to the whole test script. Which means that
"#
Looks like you failed 3 tests of 22." is always attached to the last
test.
What were you trying to do with the diagnostics? Simply store them, or
something more elaborate? Right now, Test::More::Diagnostic can
somewhat help:
[...]
# Failed test 'fails'
# at t/fail.t line 11.
# got: '3'
# expected: '4'
# Failed test 'fails structure'
# at t/fail.t line 12.
# +----+------+----------+
# | Elt|Got |Expected |
# +----+------+----------+
# | 0|this |this |
# * 1|that |other *
# +----+------+----------+
# Looks like you failed 2 tests of 3.
I wish you'd s/Got/Actual/ or Received. Got must die.
David