[tap-l] Nested tests with TAP::Harness and verbose output
Andy Armstrong
andy at hexten.net
Tue Nov 20 04:26:31 EST 2007
On 19 Nov 2007, at 21:43, Michael Moore wrote:
> I've set up our batch tests to use TAP::Harness's runtests to run
> sub-tests. We have many cases where BatchTestA calls BatchTestB which
> calls TestC.
>
> If I create a TAP::Harness object in both BatchTestA and BatchTestB,
> it
> works fine (all good so far!).
>
> I wanted to get a little more information out of our tests, so I
> passed
> in a hash with the parameter "verbosity => 1" to each of the
> TAP::Harness objects.
>
> I found that If any TAP::Harness object other than the top level test
> was set to verbose, it would break the TAP output. Is this expected
> behavior?
Yeah, I think so. It looks as if you're feeding the console output
from the nested harness into the containing harness as TAP.
A test that runs under TAP::Harness should output syntactically clean
TAP.
You could have a look at Test::Steering to discover how to run nested
tests.
--
Andy Armstrong, Hexten
More information about the tap-l
mailing list