File Coverage

inc/bin/testml-cpan
Criterion Covered Total %
statement 11 11 100.0
branch 2 4 50.0
condition n/a
subroutine 2 2 100.0
pod n/a
total 15 17 88.2


line stmt bran cond sub pod time code
1             #!/usr/local/bin/perl
2              
3 2     2   12110 use lib 't', 'inc/lib';
  2         1604  
  2         12  
4              
5 2     2   1331 use TestML::Run::TAP;
  2         8  
  2         2884  
6              
7 2         291688 my $testml_file = $ARGV[-1];
8 2         5 my $test_file = $testml_file;
9              
10 2 50       30 $test_file =~ s/(.*)\.t$/inc\/$1.tml.lingy/
11             or die "Error with '$testml_file'. testml-cpan only works with *.t files.";
12 2 50       58 -e $test_file
13             or die "TestML file '$testml_file' not compiled as '$test_file'";
14              
15 2         21 TestML::Run::TAP->run($test_file);