Logging of Test execution in QTTestDriver verbose mode

Abierto
#304 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
cpp

Línea de trabajo

Comienza localizando la implementación de QTTestDriver y el manejo de InvokeResult::success(), y después inspecciona cómo el indicador verbose y los tipos Result existentes exponen la salida. La tarea estará terminada cuando la salida de una ejecución exitosa de pruebas QT esté disponible para el driver y se registre cuando el modo verbose esté habilitado, sin perder contexto útil del fallo.

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

Descripción

feature
🤔 What's the problem you're trying to solve?

Currently if the steps run without any problems, the output from the test could not be logged or seen. The output is stored in a file that is removed after test and does not contain helpful information on success cause no loglevel is provided to the test

✨ What's your proposed solution?

The verbose flag or another flag should be provided to the TestDriver implementation.
The testdriver should then configure the tests with the appropriate, driver specific loglevels.
The output of the test could be

  • provided as "description" as part of the InvokeResult::success() like for the other Resulttypes
  • the description should be logged out in case of the verbose flag enabled.
⛏ Have you considered any alternatives or workarounds?

The logging could be done in the steps implementation by NOT using the QT macros qInfo() or by providing an messagehandler for this. Long text short: logging to stderr is possible and output from stderr is shown. This could also a way to enable logging. But in failure cases the context of these logs and the steps executions do not match. This might not be helpfull.

📚 Any additional context?

No response

Lenguaje dominante
C++
Estrellas
330
Forks
142
Merge medio
2 d 8 h
PR fusionados (30 d)
2

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-cpp

Todos los issues de cucumber/cucumber-cpp

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.