Skip to content

Test2::Plugin::ExitSummary missing failure summary #1056

@aczarnowski

Description

@aczarnowski

Could Test2::Plugin::ExitSummary also output the failure summary from Test::More?

For example, this code:

use 5.14.0;
use warnings;
use Test::More;
ok(1, "Passing test");
ok(0, "Failing test");
done_testing();

Produces this output:

ok 1 - Passing test
not ok 2 - Failing test
#   Failed test 'Failing test'
#   at .\testMore.pl line 5.
1..2
# Looks like you failed 1 test of 2.

But this code:

use 5.14.0;
use warnings;
use Test2::Bundle::More;
use Test2::Plugin::ExitSummary;
ok(1, "Passing test");
ok(0, "Failing test");
done_testing();

Does not include the "Looks like you failed..." diagnostic.

ok 1 - Passing test
not ok 2 - Failing test
# Failed test 'Failing test'
# at .\test2PluginExitSummary.pl line 6.
1..2

The Test2 modules I'm using in Strawberry Perl v5.32.1 look like this:

cpan> i Test2::Plugin::ExitSummary
Database was generated on Tue, 03 Feb 2026 21:00:40 GMT
Module id = Test2::Plugin::ExitSummary
    CPAN_USERID  EXODIST (Chad Granum <exodist7@gmail.com>)
    CPAN_VERSION 1.302219
    CPAN_FILE    E/EX/EXODIST/Test-Simple-1.302219.tar.gz
    UPLOAD_DATE  2025-12-09
    MANPAGE      Test2::Plugin::ExitSummary - Add extra diagnostics on failure at the end of the test.
    INST_FILE    C:\Strawberry\perl\site\lib\Test2\Plugin\ExitSummary.pm
    INST_VERSION 1.302219

(I'm sticking with an older Strawberry for its working MySQL support.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions