-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Line breaks in the test output are missing in CI output in the Parallel mode #4396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
By the way, colors for GitLab CI are not enabled automatically, we have to force enable them by the But without colors we have the same issue with missing line breaks. |
@MurzNN Can you try setting Or, if you use a separate env for CI inside your Nightwatch config file, you can set this property inside that env itself instead of enabling it globally. If this works, we'll try to add this in the documentation itself as many people have been raising this. |
Yeah, adding So, the issue seems is with the output boxes rendering, would be good to fix it, if possible. |
By the way, colors are not enabled automatically on GitLab CI, I have to set |
This ticket should not be closed until EDIT: ah just noticed garg3133 already said we'll add it. |
For sure the documentation, I remember this coming up in the past, but couldn't remember the setting despite searching the issues forum for it to help out. Perhaps it should also get added to the nightwatch.conf.js base template (defaulting to not disabling the setting) with a comment above it explaining what it does like we do for the other common settings. I think most people ultimately use it in a pipeline where the boxes don't seem to format correctly though it is great when developing and running the tests locally in an IDE. |
Description of the bug/issue
When I run Nightwatch in GitLab CI using the parallel mode - I see no line breaks in the output, here is an example:

Here is an example of a job with badly formatted output: https://git.drupalcode.org/project/commercetools/-/jobs/4723196
Steps to reproduce
Run the parallel mode locally - you will see a well-formatted colored output.

Run the same on the GitLab pipeline - you will see that the line breaks are missing, making the output not readable at all:

Sample test
Command to run
Verbose Output
Nightwatch Configuration
Nightwatch.js Version
3.12.1
Node Version
18.20.7
Browser
Chrome
Operating System
Linix (GitLab Runner)
Additional Information
No response
The text was updated successfully, but these errors were encountered: