The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use Test::Spec;

use App::autotest::Test::Runner::Result;
use TAP::Parser::Aggregator;

use constant SOME_POSITIVE_INTEGER => 42;

describe 'a test runner result' => sub {
    it 'tells if there were failures' => sub {
        my $harness_result=TAP::Parser::Aggregator->new;
        $harness_result->stubs(failed => SOME_POSITIVE_INTEGER);

        my $result=App::autotest::Test::Runner::Result->new(
            harness_result => $harness_result);

        ok $result->has_failures;
    };
};

runtests unless caller;