It highlights what I believe is a small design flaw in the YAML blocks:
if you want to process a test result and its associated block as an atom
you have to introduce a delay into the processing pipeline - because
having seen a test you don't know if the next thing is going to be a
YAML block or another test.
Yeah baby! (Score:1)
I want Test::Builder to support the new YAML diagnostic syntax.
I've done a really nasty hacky, bodge of Test::More that sort of supports diagnostics:
Test::More::Diagnostic [cpan.org]
It highlights what I believe is a small design flaw in the YAML blocks: if you want to process a test result and its associated block as an atom you have to introduce a delay into the processing pipeline - because having seen a test you don't know if the next thing is going to be a YAML block or another test.
TAP::Formatter::Te [cpan.org]
Pre and post hooks? (Score:1)
#!/usr/bin/perl
use strict;
use MyTestLibrary 'prehook';
use Test::More tests => 1234;
(tests)
END {
MyTestLibrary->posthook;
}
Re: (Score:2)
Exactly, just not embedded in the tests.