Skip to content

fix: show attempts in test error logs of retried tests - #11684

Closed
hi-ogawa wants to merge 26 commits into
vitest-dev:mainfrom
hi-ogawa:fix/issue-11454
Closed

hi-ogawa wants to merge 26 commits into
vitest-dev:mainfrom
hi-ogawa:fix/issue-11454

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

🤖

When a retried test failed the same way on several attempts, the failure summary printed its error once but its FAIL header once per attempt, with nothing saying what the repeated lines meant. Each error now prints one header per test, and for a test that ran more than once the header lists the attempts that produced the error. Tests that ran once keep the plain header.

Before:

 FAIL  basic.test.js > always fails
 FAIL  basic.test.js > always fails
 FAIL  basic.test.js > always fails
AssertionError: expected 1 to be 2 // Object.is equality

After:

 FAIL  basic.test.js > always fails (retry 0, 1, 2)
AssertionError: expected 1 to be 2 // Object.is equality

When attempts fail differently, each error names its own attempt:

 FAIL  basic.test.js > fails differently (retry 0)
AssertionError: expected 1 to be 10 // Object.is equality
 FAIL  basic.test.js > fails differently (retry 1)
AssertionError: expected 2 to be 10 // Object.is equality

With repeats, the label names both indices, for example (repeat 1 retry 0).

hi-ogawa and others added 26 commits October 20, 2026 15:57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 21, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 3353f17
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ad89117eb935095508c94d8
😎 Deploy Preview https://deploy-preview-11684--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hi-ogawa hi-ogawa changed the title feat: show attempts in failure header of retried tests fix: show attempts in test error logs of retried tests Oct 22, 2026
@hi-ogawa

Copy link
Copy Markdown
Collaborator Author

Moved to #11696 (head branch in this repo for stacking).

@hi-ogawa hi-ogawa closed this Oct 22, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed test's FAIL header is printed once per retry attempt

1 participant