Terminate a browser immediately when all tests are done on it

Aperta
#32 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
testing-qa

Direzione di ricerca

Inizia eseguendo il comando npm test mostrato con più browser e ispeziona il ciclo di vita del test-runner durante il completamento e la terminazione dei browser. Traccia la gestione delle sessioni Selenium e BrowserStack; completato significa che ogni browser viene terminato non appena finiscono i suoi test, senza essere considerato bloccato o rieseguire il suo ultimo modulo.

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

Descrizione

Currently, JTR only terminates browsers when all tests are done in all requested browsers.

It's not a problem for our CI as we only run JTR on a single browser at a time, but it makes local test runs much more annoying.

For example, running the following in jQuery:

npm run test:unit -- -v -c jtr-isolate.yml --browserstack 'IE_11' --browserstack 'Chrome_latest' --browserstack 'Firefox_latest' --browserstack 'Safari_latest'

usually leads to modern browsers finishing quickly and waiting while IE is running tests. Since they wait for a long time, the browsers are idle for too long and... JTR (or something under the hood) thinks it's because the browser got stuck, restarts the browser and re-runs the last module tests on it (here: tween).

One possible solution to this would be to fix this detection, but needlessly keeping the browser running in idle mode is also not great; just terminating the browser when it's done would solve both issues at the same time.

Lingua principale
JavaScript
Stelle
4
Fork
2
Merge medio
1g 2h
PR unite (30g)
1

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 jquery/jquery-test-runner

Tutte le issue di jquery/jquery-test-runner

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.