-
-
Notifications
You must be signed in to change notification settings - Fork 475
Output gets butchered if Invoke-Pester is called with 6>&1 #1384
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
Still reproduceable in Pester v5, but not sure how to address this issue. Pester currently relies heavily on Demo: & { Write-Host "Demo" -NoNewline; Write-Host "Time" -NoNewline }
DemoTime
& { Write-Host "Demo" -NoNewline; Write-Host "Time" -NoNewline } 6>&1
Demo
Time The only solutions I can think of is:
|
Correction about my ANSI-suggestion. Even redirected, you'd keep the formatting. I'd suggest implementing it at some point to support colors in CI/CD logs too as mentioned in the related issue. We could then keep this issue in mind to use one call to |
Moved that comment to #1953 |
its not a requirement. I was executing pester via vagrant provisioning scripts, and noticed that the output format is quite broken then. |
In that case we won't fix that because it would just replace this issue with another. Sorry. |
If stream 6 is redirected via 6>&1 the output includes additional newlines and looks like:
The text was updated successfully, but these errors were encountered: