Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multi-browser configuration #5963

Open
4 tasks done
sheremet-va opened this issue Jun 24, 2024 · 0 comments · May be fixed by #6975
Open
4 tasks done

Allow multi-browser configuration #5963

sheremet-va opened this issue Jun 24, 2024 · 0 comments · May be fixed by #6975
Labels
feat: browser Issues and PRs related to the browser runner p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@sheremet-va
Copy link
Member

sheremet-va commented Jun 24, 2024

Clear and concise description of the problem

Currently, to run several browsers in Vitest, you need to create separate projects. Unfortunately, every project has its own browser provider and Vite server which makes it inefficient - reusing the same server could speed up tests tremendously because assets are cached.

Suggested solution

Allow passing down a list of browsers and configurations:

export default defineConfig({
  test: {
    browser: {
      provider: 'playwright',
      capabilities: [
        { browser: 'chromium', context: {}, launch: {} },
        { browser: 'firefox', context: {}, launch: {} },
        { browser: 'webkit' },
      ],
    },
  },
})

Alternative

No response

Additional context

No response

Validations

@sheremet-va sheremet-va added enhancement: pending triage feat: browser Issues and PRs related to the browser runner p2-nice-to-have Not breaking anything but nice to have (priority) and removed enhancement: pending triage labels Jun 24, 2024
@sheremet-va sheremet-va moved this to Approved in Team Board Nov 26, 2024
@sheremet-va sheremet-va linked a pull request Nov 27, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: browser Issues and PRs related to the browser runner p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
Status: Approved
Development

Successfully merging a pull request may close this issue.

1 participant