On Jul 2, 2009, at 3:32 AM, Rafael Garcia-Suarez wrote:
2009/7/2 Paul Fenwick <p...@perltraining.com.au>:
Since the line in question is using diag(), it already does have a #
prepended to it. AFAIK most TAP parses pass that through to the
user by
default.
diag() writes to STDERR by default, so it's noisy and clutters
output. Core
tests use C<print "# message\n"> instead for this reason.
Is there a way to make diag() output to STDOUT by default globally
(from
the test harness) ?
Use note() instead of diag().
I'd rather not mess with redirections, but a global
environment variable that would tell Test::Builder to use STDOUT for
all streams by default would be nice. That way dual-life module
authors
could still use diag() to print informative messages. Would a patch
be welcomed?
Looks like there isn't, but I could see where that'd be useful.
Best,
David