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

Abierto
#1,869 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
ruby
Área
testing, tooling

Línea de trabajo

Empieza comparando el formateador de rerun basado en mensajes con su versión basada en eventos, centrándote en los fallos de Around hook y en los mensajes TestCaseFinished y TestStepFinished descritos en la issue. Se considera terminado cuando se detecta un Around hook fallido y la salida del rerun incluye division.feature:6 en lugar de estar vacía.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

: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

Lenguaje dominante
Ruby
Estrellas
5.2k
Forks
1.1k
Merge medio
2 d 14 h
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cucumber/cucumber-ruby

Todos los issues de cucumber/cucumber-ruby

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.