File: silent-harness.pl

package info (click to toggle)
libtest-harness-perl 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,456 kB
  • ctags: 550
  • sloc: perl: 16,945; makefile: 44; sh: 12
file content (16 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
#
# Run some tests and get back a data structure describing them.

use strict;
use warnings;
use TAP::Harness;
use Data::Dumper;

my @tests = glob 't/yaml*.t';

my $harness = TAP::Harness->new( { verbosity => -9, lib => ['blib/lib'] } );

# $aggregate is a TAP::Parser::Aggregator
my $aggregate = $harness->runtests(@tests);
print Dumper($aggregate);