PSA::Test::Builder 0.49_01 review
DownloadPSA::Test::Builder is a backend for building test libraries. SYNOPSIS package My::Test::Module; use PSA::Test::Builder;
|
|
PSA::Test::Builder is a backend for building test libraries.
SYNOPSIS
package My::Test::Module;
use PSA::Test::Builder;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(ok);
my $Test = Test::Builder->new;
$Test->output('my_logfile');
sub import {
my($self) = shift;
my $pack = caller;
$Test->exported_to($pack);
$Test->plan(@_);
$self->export_to_level(1, $self, 'ok');
}
sub ok {
my($test, $name) = @_;
$Test->ok($test, $name);
}
END {
$Test->_ending();
}
Test::Simple and Test::More have proven to be popular testing modules, but they're not always flexible enough. Test::Builder provides the a building block upon which to write your own test libraries which can work together.
And the block was found to be rotten, and so PSA::Test::Builder was constructed.
Requirements:
Perl
PSA::Test::Builder 0.49_01 search tags