On 18 Feb 2009, at 22:44, Michael G Schwern wrote:
The thing which most takes advantage of this is TODO tests. They send their failure diagnostics to STDOUT so the user is not spammed with passing test
information.

I didn't know that...

The current behaviour also means that prove's --merge switch hides
diagnostics:

    $ cat t.t
    #!perl

    use Test::More tests => 1;

    ok 1, "that's ok";
    diag "You what??";

    $ prove t.t
    t.t .. 1/1 # You what??
    t.t .. ok
    All tests successful.
    Files=1, Tests=1,  0 wallclock secs ( 0.02 usr  0.01 sys + ...
    Result: PASS

    $ prove --merge t.t
    t.t .. ok
    All tests successful.
    Files=1, Tests=1,  0 wallclock secs ( 0.02 usr  0.01 sys + ...
    Result: PASS

One proposed solution is the TAP logging syntax, but it wasn't
discussed at the TAP summit in Oslo last year. It's status is in
limbo. http://testanything.org/wiki/index.php/TAP_logging_syntax

OK - let's move on that then.

--
Andy Armstrong, Hexten

Reply via email to