Skip to content

Avoid requiring manual config for trace view integration #822

Description

@hi-ogawa

vscode/README.md

Lines 138 to 154 in 121fa53

### Trace View
With Vitest 5, the extension can open recorded browser interactions for a selected test in [Vitest Trace View](https://vitest.dev/guide/browser/trace-view.html). Enable Trace View and the HTML reporter in your existing Browser Mode configuration:
```ts
import { configDefaults, defineConfig } from 'vitest/config'
export default defineConfig({
test: {
reporters: [...configDefaults.reporters, 'html'],
browser: {
// Your existing Browser Mode configuration
traceView: true,
},
},
})
```

One approach would be to add explicit Run with trace view button, which triggers a run with auto configured html reporter and traceView.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions