Rerun formatter: the message based version miss failures in around hooks

Aperta
#1,869 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
ruby
Ambito
testing, tooling

Direzione di ricerca

Inizia confrontando il formatter del rerun basato sui messaggi con la sua versione basata sugli eventi, concentrandoti sui fallimenti degli Around hook e sui messaggi TestCaseFinished e TestStepFinished descritti nell’issue. Il lavoro è completato quando viene rilevato un Around hook fallito e l’output del rerun include division.feature:6 invece di essere vuoto.

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

Descrizione

:bug: bug
👓 What did you see?

For Around hook there are no TestStepStarted or TestStepFinished events fired. If an Around hook fails it is only detected from the result in the TestCaseFinished event. The result of the TestCaseFinished event are frequently used by formatters in Cucumber-Ruby, so the event based formatters do detect and report failures in Around hook.
In case of messages there is only result data in the TestStepFinished message and not in the TestCaseFinished message. Therefore, when the rerun formatter was changes to use messages instead of event, it no longer detect failures in Around hooks.

Using the message based version of the rerun formatter, a failure in an Around hook could look like:
Summary output:

1 scenario (1 failed)
4 steps (4 passed)

Content for rerun file is empty

✅ What did you expect to see?

Using the event based version of the rerun formatter, a failure in an Around hook could look like:
Summary output:

1 scenario (1 failed)
4 steps (4 passed)

Content for rerun file:
division.feature:6

📦 Which tool/library version are you using?

No response

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response

Lingua principale
Ruby
Stelle
5.2k
Fork
1.1k
Merge medio
2g 14h
PR unite (30g)
5

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 cucumber/cucumber-ruby

Tutte le issue di cucumber/cucumber-ruby

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.