pool:
  vmImage: 'windows-latest'

steps:
- script: build.bat
  displayName: 'Run build and tests'

- task: PublishTestResults@2
  displayName: 'Publish test results'
  inputs:
    testResultsFormat: xUnit
    testResultsFiles: 'test/*/TestResults/*.trx' 
    failTaskOnFailedTests: true


pool:
  vmImage: 'windows-latest'

steps:
- script: build.bat
  displayName: 'Run build and tests'

- task: PublishTestResults@2
  displayName: 'Publish test results'
  inputs:
    testResultsFormat: VSTest
    testResultsFiles: 'test/*/TestResults/*.trx' 
    failTaskOnFailedTests: true


Test is xUnit but output is VSTest
Test is xUnit but output is VSTest