Logging of Test execution in QTTestDriver verbose mode

Ouverte
#304 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
cpp

Piste de recherche

Commencez par localiser l’implémentation de QTTestDriver et la gestion de InvokeResult::success(), puis examinez comment le flag verbose et les types Result existants exposent la sortie. Le travail est terminé lorsque la sortie d’une exécution réussie des tests QT est disponible pour le driver et est journalisée lorsque le mode verbose est activé, sans perdre de contexte utile sur l’échec.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
C++
Étoiles
330
Forks
142
Merge moyen
2 j 8 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cucumber/cucumber-cpp

Toutes les issues de cucumber/cucumber-cpp

Issues similaires

Plus d'issues C++

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.