Test::TAP::Model

A subclass of Test::Harness::Straps
Download

Test::TAP::Model Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Yuval Kogman
  • Publisher web site:
  • http://search.cpan.org/~nobull/

Test::TAP::Model Tags


Test::TAP::Model Description

A subclass of Test::Harness::Straps Test::TAP::Model is a Perl module, a subclass of Test::Harness::Straps (although in an ideal world it would really use delegation).It uses callbacks in the straps object to construct a deep structure, with all the data known about a test run accessible within.It's purpose is to ease the processing of test data, for the purpose of generating reports, or something like that.The niche it fills is creating a way to access test run data, both from a serialized and a real source, and to ease the querying of this data.SYNOPSIS use Test::TAP::Model; my $t = Test::TAP::Model->new(); # Test::Harness::Straps methods are available, but they aren't enough. # Extra book keeping is required. See the run_test method # here's a convenient wrapper $t = Test::TAP::Model->new_with_tests(glob("t/*.t")); # that's shorthand for new->run_tests $t->run_tests(qw{ t/foo.t t/bar.t }); # every file is an object (Test::TAP::Model::File) my @tests = $t->test_files; # this method returns a structure my $structure = $t->structure; # which is guaranteed to survive serialization my $other_struct = do { my $VAR; eval Data::Dumper::Dumper($structure) }; # the same as $t1 my $t2 = Test::TAP::Model->new_with_struct($other_struct); Requirements: · Perl


Test::TAP::Model Related Software