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) ? 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?

Reply via email to