Skip to content

feat(browser): enable failure-only trace view by default - #11678

Closed
hi-ogawa wants to merge 40 commits into
vitest-dev:mainfrom
hi-ogawa:feat/trace-view-failure-only-default
Closed

hi-ogawa wants to merge 40 commits into
vitest-dev:mainfrom
hi-ogawa:feat/trace-view-failure-only-default

Conversation

@hi-ogawa

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

Copy link
Copy Markdown
Collaborator

This PR makes browser.traceView default to 'failure-only', so every failed browser test records a trace and prints its step timeline in the failure output (#11594).

We thought of surfacing an HTML reporter suggestion in the terminal next to the timeline (#11678 (comment)), but left it in the docs only for now. The HTML reporter has its own cost, and for users who only want the terminal timeline without the HTML reporter, there would be no way to opt out of that suggestion. We may revisit the suggestion strategy later if it's considered important.

TODO

  • docs

hi-ogawa and others added 21 commits October 16, 2026 13:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/config/browser/traceview.md
#	packages/ui/client/components/trace/TraceView.vue
#	packages/vitest/src/node/config/resolveConfig.ts
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>
…ntry

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>
… mode"

This reverts commit 394809a.

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 60603e6
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6adf081c9c75992788994281
😎 Deploy Preview https://deploy-preview-11678--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 and others added 3 commits October 21, 2026 12:55
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>
@hi-ogawa hi-ogawa added this to the 5.1.0 milestone Oct 21, 2026
@hi-ogawa hi-ogawa added the p2-to-be-discussed Enhancement under consideration (priority) label Oct 23, 2026
@hi-ogawa hi-ogawa moved this to P2 - 2 in Team Board Oct 23, 2026
@hi-ogawa

Copy link
Copy Markdown
Collaborator Author

TODO: it looks better to suggest to use it together with html reporter to see dom snapshot when terminal timeline output shows errrors of #11594.

@hi-ogawa hi-ogawa moved this from P2 - 2 to Approved in Team Board Oct 23, 2026
@hi-ogawa hi-ogawa removed the p2-to-be-discussed Enhancement under consideration (priority) label Oct 23, 2026
hi-ogawa and others added 16 commits October 26, 2026 15:20
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>
Accepting a mode made the flag consume a following test filter.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…-view-failure-only-default

# Conflicts:
#	packages/vitest/src/node/cli/cli-config.ts
…lure-only-default

# Conflicts:
#	docs/config/browser/traceview.md
#	docs/guide/cli-generated.md
#	packages/vitest/src/node/cli/cli-config.ts
#	packages/vitest/src/node/config/resolveConfig.ts
#	packages/vitest/src/node/types/browser.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>
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

Copy link
Copy Markdown
Collaborator Author

Moved to #11766 (upstream branch, to stack #11767 on it).

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

Labels

None yet

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

1 participant