Fail to get PHPUnit test report in Azure Pipelines

Viewed 204

Fail to get PHPUnit test report in Azure Pipelines.

I want to get test result report of PHPUnit in Azure Pipelines, but got an error not finding the file:

Starting: PublishTestResults
==============================================================================
Task         : Publish Test Results
Description  : Publish test results to Azure Pipelines
Version      : 2.180.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
==============================================================================
/usr/bin/dotnet --version
5.0.301
##[warning]No test result files matching **/result.xml were found.
Finishing: PublishTestResults

Here is the end of azure-pipelines.yml

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

the test run before the task, and got the right file.

lib/Cake/Console/cake test app All --debug --log-junit app/result.xml

What did I miss?

PHP: 5.3.29 PHPUnit: 3.7.38

0 Answers
Related