No test result files matching test- xml were found - Azure DevOps

0 votes

I am trying to publish test results in azure but i am unable to do it. Its my second day with azure so i may be missing something.

My pipeline code is

- task: PublishTestResults@2
  inputs:
    testResultsFormat: 'JUnit'
    testResultsFiles: '**/test-*.xml'

karma.conf.js

junitReporter: {
             outputDir: '.',
             outputFile:'test-report.xml'
         },

And I am using the latest ubuntu. But always when I run pipeline I get this error

##[warning]No test result files matching **/test-*.xml were found.

I tried lowercase uppercase but nothing works and I don't know what I am doing wrong. I will be thankful for any hints.

Mar 29, 2022 in Azure by Edureka
• 12,700 points
6,169 views