[Feature]: Run the same tests across Chromium, Firefox and WebKit in one dotnet test run

Aperta
#3,443 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, playwright
Ambito
testing

Direzione di ricerca

Start by reading how Playwright .NET currently reads the BROWSER setting and how its NUnit, xUnit, and MSTest integrations discover and report tests. Add an opt-in BrowserNames runsettings option that runs each test for each configured browser and reports browser-specific cases; done means a single dotnet test run produces separate test entries for Chromium, Firefox, and WebKit across the supported test frameworks.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

🚀 Feature Request

Add an opt-in so one run covers several browsers, instead of re-running dotnet test once per BROWSER value:

  • runsettings <BrowserNames>chromium;firefox;webkit</BrowserNames>.
  • Each test is reported once per browser, e.g. Checkout(chromium). For NUnit this can use a parameterized fixture; xUnit and MSTest need their own data-row mechanisms.
Example
<Playwright>
  <BrowserNames>chromium;firefox;webkit</BrowserNames>
</Playwright>

Test Explorer then shows CheckoutTests.Checkout [chromium], [firefox], [webkit].

Motivation

Node's projects gives one run with one report across browsers. In .NET, cross-browser coverage currently needs CI matrix plumbing and produces separate result files, so many teams only test Chromium.

Lingua principale
C#
Stelle
3k
Fork
307
Merge medio
1g 13h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/playwright-dotnet

Tutte le issue di microsoft/playwright-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.