develooper Front page | perl.qa | Postings from January 2009

Re: Test::Builder plan at end

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
January 22, 2009 17:25
Subject:
Re: Test::Builder plan at end
Message ID:
49791C6D.90006@pobox.com
Justin DeVuyst wrote:
> Hello,
> 
> I was told this might be a place to get information about
> upcoming Test::Builder changes.
> 
> I'd like to know if and when Test::Builder will officially
> support true plan at end.  The current version of
> Test::Builder reports 1..$seen_tests instead of
> 1..$expected_tests.
> 
> I've had to resort to a hack like this in one of my modules
> to get around the deficiency:
> 
> my $original_sub = \&Test::Builder::_ending;
> *Test::Builder::_ending = sub {
>     my $builder = shift;
>     $builder->expected_tests( $builder->{Expected_Tests} );
>     $builder->no_header( 1 );
>     return $self_builder->$original_sub( @_ );
> };
> 
> Which I would like to dump ASAP.

Yes, this is the deferred plan.
http://code.google.com/p/test-more/issues/detail?id=1

I don't plan on supporting it until TB2, but if someone produced a complete
patch I'd take it.


-- 
I have a date with some giant cartoon robots and booze.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About