Multi-line test output support
Is it possible to have multiple lines of stdout/stderr in the test output view?
In this build:
https://ci.appveyor.com/project/zeux/pugixml/build/30/tests
You can see that the PowerShell script reports a multi-line string via AppVeyor API:
https://ci.appveyor.com/project/zeux/pugixml/build/30#L94
But it's displayed as a single line in the test view.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Apr, 2015 10:39 PM
How do you call that API?
2 Posted by Arseny Kapoulki... on 13 Apr, 2015 11:55 PM
Here's the code that I was using for that build:
Write-Output "Captured output:"
Write-Output $testOutput
Update-AppveyorTest $target -Outcome Failed -StdOut $testOutput -ErrorMessage "Running failed"
$testOutput is retrieved using Tee-Object:
& .\$target | Tee-Object -Variable testOutput
Not sure what type is testOutput - maybe it's a list of strings, and Update-AppveyorTest just concatenates them?..
3 Posted by Arseny Kapoulki... on 14 Apr, 2015 01:06 AM
Yup, it was an implicit string array to string conversion; using out-string fixed it.
Sorry for false alarm, I'm kinda new to PowerShell :)
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:55 AM.