[Feature]: Make list
reporter's printSteps
option work on non-TTY
#31674
Labels
list
reporter's printSteps
option work on non-TTY
#31674
🚀 Feature Request
Currently, CI environments like GitHub Actions don't have a TTY mode. Playwright straight up disables the
printSteps
option of thelist
reporter in that case, except ifPLAYWRIGHT_FORCE_TTY
is passed, but then the output is quite broken.It would be great if the
list
reporter'sprintSteps
option could still work for non-TTY modes, even if it's with a "degraded" output/features compared to the TTY-enabled one.Example
The following config would work as expected and provide useful feedback for test steps in CI/non-TTY mode:
Motivation
This would be beneficial to monitor the ongoing status of tests in CI for instance, where output is quite limited for long-running tests. Test steps are a great way to provide feedback during each test's execution, but this doesn't work in most CI environments right now since they don't have a TTY mode.
We're currently running Playwright in CI with
DEBUG=pw:api
to provide feedback, but it's obviously extremely verbose and drowns useful information. Having test steps' logs display properly instead would be enough for us to know what's going on during long tests.The text was updated successfully, but these errors were encountered: