Logging of Test execution in QTTestDriver verbose mode

Offen
#304 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
cpp

Rechercherichtung

Beginne damit, die Implementierung von QTTestDriver und die Behandlung von InvokeResult::success() zu lokalisieren, und untersuche anschließend, wie das verbose-Flag und die vorhandenen Result-Typen die Ausgabe bereitstellen. Erledigt ist die Aufgabe, wenn die Ausgabe einer erfolgreichen QT-Testausführung dem Treiber zur Verfügung steht und bei aktiviertem verbose-Modus protokolliert wird, ohne nützlichen Fehlerkontext zu verlieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C++
Sterne
330
Forks
142
Ø Merge
2 T. 8 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cucumber/cucumber-cpp

Alle Issues in cucumber/cucumber-cpp

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.