Skip to content

feat: expose per-retry/repeat attempt result - #11232

Merged
sheremet-va merged 68 commits into
mainfrom
attempts-api-prototype
Oct 19, 2026
Merged

sheremet-va merged 68 commits into
mainfrom
attempts-api-prototype

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This adds an TestCase.attempts() API so reporters can inspect the normalized result, errors, timing, retry count, and repeat index of each test attempt.

TODO

  • doc
  • follow-up?: add an onTestCaseAttempt(testCase, attempt) reporter hook.

hi-ogawa and others added 30 commits September 9, 2026 17:11
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
@hi-ogawa hi-ogawa added this to the 5.1.0 milestone Sep 29, 2026
Base automatically changed from fails-retry to main September 29, 2026 07:21
hi-ogawa and others added 5 commits October 1, 2026 18:38
# Conflicts:
#	packages/vitest/src/runtime/runner/run.ts
#	test/e2e/test/repeats.test.ts
#	test/e2e/test/retry.test.ts
#	test/unit/test/repeats.test.ts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
hi-ogawa and others added 10 commits October 1, 2026 19:27
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@hi-ogawa
hi-ogawa marked this pull request as ready for review October 1, 2026 10:42
hi-ogawa added a commit to hi-ogawa/vitest that referenced this pull request Oct 16, 2026
Wait for vitest-dev#11232 to pick the trace of each error's attempt.

This reverts commit dfc1db1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sheremet-va
sheremet-va previously approved these changes Oct 19, 2026
@sheremet-va

Copy link
Copy Markdown
Member

Conflict! 😢

# Conflicts:
#	packages/vitest/src/runtime/runner/run.ts
@hi-ogawa
hi-ogawa requested a review from sheremet-va October 19, 2026 10:09
@sheremet-va
sheremet-va merged commit 21be412 into main Oct 19, 2026
29 checks passed
@sheremet-va
sheremet-va deleted the attempts-api-prototype branch October 19, 2026 14:39
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.

Custom reporters can't access per-attempt details for retries

2 participants