NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
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.