Multi-line test output support

Arseny Kapoulkine's Avatar

Arseny Kapoulkine

13 Apr, 2015 08:46 PM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Apr, 2015 10:39 PM

    Feodor Fitsner's Avatar

    How do you call that API?

  2. 2 Posted by Arseny Kapoulki... on 13 Apr, 2015 11:55 PM

    Arseny Kapoulkine's Avatar

    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. 3 Posted by Arseny Kapoulki... on 14 Apr, 2015 01:06 AM

    Arseny Kapoulkine's Avatar

    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 :)

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:55 AM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM