Now the logic to invoke tests is in exactly one place, we can refactor it with
impunity.
);
sub _run_test {
- my($test, $type) = @_;
+ my($harness, $test, $type) = @_;
+ if (!defined $type) {
+ # To conform to the interface expected by exec in TAP::Harness
+ $type = 'perl';
+ }
my $options = _scan_test($test, $type);
$te = '';
}
- my $results = _run_test($test, $type);
+ my $results = _run_test(undef, $test, $type);
my $failure;
my $next = 0;
color => $color,
jobs => $jobs,
verbosity => $Verbose,
+ exec => \&_run_test,
});
if ($state) {