Next release will implement TB2::Tester so that TB2 and other modules can
start testing themselves without breaking every time I make a little change to
the TAP format.
https://github.com/schwern/test-more/issues/#issue/112
Something like this:
use Test::More;
use Your::Test::Module qw(this_ok that_ok);
use Test::Builder2::Tester;
my $capture = capture {
this_ok $this, "some name";
that_ok $that;
};
# The first one passed, and it has a name
result_like $capture->results->[0], {
pass => 1,
name => "some name",
};
# The second one failed, and it has no name
result_like $capture->results->[1], {
pass => 0,
name => ''
};
done_testing;
-------- Original Message --------
Subject: CPAN Upload: M/MS/MSCHWERN/Test-Simple-2.00_05.tar.gz
Date: Mon, 24 Jan 2011 05:58:15 +0100
From: PAUSE <upl...@pause.perl.org>
Reply-To: cpan-u...@perl.org
To: Michael G Schwern <sch...@pobox.com>
The uploaded file
Test-Simple-2.00_05.tar.gz
has entered CPAN as
file: $CPAN/authors/id/M/MS/MSCHWERN/Test-Simple-2.00_05.tar.gz
size: 198086 bytes
md5: 53a17a993c12ae026912941f6d6e6ca8
No action is required on your part
Request entered by: MSCHWERN (Michael G Schwern)
Request entered on: Mon, 24 Jan 2011 04:57:38 GMT
Request completed: Mon, 24 Jan 2011 04:58:15 GMT
Thanks,
--
I do have a cause though. It's obscenity. I'm for it.
- Tom Lehrer