cucumber / cucumber/cucumber-cpp

Logging of Test execution in QTTestDriver verbose mode

Open
#304 2 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
330
Forks
140
PR merge metrics
No merged PRs in 30d

Description

### 🤔 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.