This patch captures messages sent through diag() and stores them in the diagnostic array. Now all of the information the tests generate is available for later inspection.
It made the most sense to attach diagnostics to the previous test data. The documentation suggests a construct something like: ok( $foo, 'testing truth' ) or diag ( 'Backwards day!' ); There's a potential problem here, if diag() occurs before any tests. I changed the way test data is gathered, slightly, to take care of this. For that one case, the test output will be attached to the first test. I'm planning to add per-test-package level checking, but that'll be a separate patch. -- c the Implementor