Test::Run::TAP::Model

Accessible (queryable, serializable object) result collector for Test::Run::Straps runs
Download

Test::Run::TAP::Model Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Shlomi Fish
  • Publisher web site:
  • http://search.cpan.org/~shlomif/

Test::Run::TAP::Model Tags


Test::Run::TAP::Model Description

Accessible (queryable, serializable object) result collector for Test::Run::Straps runs Test::Run::TAP::Model is a Perl module, a subclass of Test::Run::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::Run::TAP::Model; my $t = Test::Run::TAP::Model->new(); # Test::Run::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::Run::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::Run::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::Run::TAP::Model->new_with_struct($other_struct); Requirements: · Perl


Test::Run::TAP::Model Related Software