Skip to content

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

Merged
sheremet-va merged 41 commits into
mainfrom
feat/trace-view-failure-only-default
Oct 28, 2026
Merged

sheremet-va merged 41 commits into
mainfrom
feat/trace-view-failure-only-default

Conversation

@hi-ogawa

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 30 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>
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 (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 26, 2026 15:38
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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 28, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 31f9469
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ae16bbcfc86d536f781561f
😎 Deploy Preview https://deploy-preview-11766--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.

: traceView
? 'on'
: 'off'
? (traceView.mode ??

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magnificent

@sheremet-va
sheremet-va merged commit f37b6b7 into main Oct 28, 2026
28 of 29 checks passed
@sheremet-va
sheremet-va deleted the feat/trace-view-failure-only-default branch October 28, 2026 06:15
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.

2 participants