Skip to content

fix: add failed test count diagnostic to ExitSummary#1070

Draft
Koan-Bot wants to merge 1 commit intoTest-More:masterfrom
Koan-Bot:koan.atoomic/fix-exit-summary-failure-count
Draft

fix: add failed test count diagnostic to ExitSummary#1070
Koan-Bot wants to merge 1 commit intoTest-More:masterfrom
Koan-Bot:koan.atoomic/fix-exit-summary-failure-count

Conversation

@Koan-Bot
Copy link

What

Adds the missing "Looks like you failed X test(s) of Y" diagnostic to Test2::Plugin::ExitSummary.

Why

Users migrating from Test::More to Test2::Bundle::More expect the failure count summary at the end of a test run (#1056). ExitSummary already tracked $hub->failed but never reported it — Test::Builder does.

How

Added a simple $ctx->diag(...) block after the existing diagnostics in summary(), matching Test::Builder's format with proper singular/plural handling.

Testing

  • Added 2 new test cases to t/modules/Plugin/ExitSummary.t (single failure + plural failures)
  • Full suite passes: 370 files, 3472 tests

Closes #1056

ExitSummary was missing the "Looks like you failed X test(s) of Y"
diagnostic that Test::Builder provides. Users migrating from
Test::More to Test2::Bundle::More expected this output.

Closes Test-More#1056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test2::Plugin::ExitSummary missing failure summary

1 participant