1

I am using the new yaml pipelines in Azure Devops. How do I display the StdOut logs from the test results in the Test Summary page for a pipeline run?

trigger:
- master
stages:
- stage: Tests
  jobs:
  - job: Tests
    steps:
    - script: dotnet test ./TestProject/ --logger "trx;LogFileName=TEST-results.trx"
    - task: PublishTestResults@2
      inputs:
        testResultsFiles: '**/*.trx'
        failTaskOnFailedTests: true
        testResultsFormat: 'VSTest'
        publishRunAttachments: true
        testRunTitle: 'Test Results'

In need stdout from the trx file to appear in the test summary page, example below.

<?xml version="1.0" encoding="utf-8"?>
<TestRun xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
  <Results>
    <UnitTestResult>
      <Output>
        <StdOut>
            Console logs appear here.
        </StdOut>
      </Output>
    </UnitTestResult>
  </Results>
</TestRun>
cfbd
  • 980
  • 2
  • 9
  • 21

0 Answers0