[BUG] TEST_VERBOSE regression?

Ovid publiustemp-tapx at yahoo.com
Fri Jan 4 12:21:33 UTC 2008


--- Andy Armstrong <andy at hexten.net> wrote:

> As of 936 prove -v will set TEST_VERBOSE :)

Sweet :)

In our in-house Test::More, I'll now be adding the following function:

  sub explain {
    return unless $ENV{TEST_VERBOSE};
    diag(@_);
  }

This will allow us to convert a lot of diag() calls to explain() calls
and ensure that we don't get a bunch of useless extra info when running
in non-verbose mode.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the tapx-dev mailing list