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

Test::Builder plan at end

Thread Next
From:
Justin DeVuyst
Date:
January 12, 2009 19:15
Subject:
Test::Builder plan at end
Message ID:
58650.98.14.90.34.1231816544.squirrel@mail.devuyst.com
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.

Thanks,
jdv


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