PublishTestResults - XUNIT No Result Found to Publish
See original GitHub issueRequired Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: PublishTestResults
Environment
-
Server - Azure Pipelines
- If using Azure Pipelines, provide the account name, team project name, build definition name/build number:
Not available
-
Agent - Private:
- If using private agent, provide the OS of the machine running the agent and the agent version:
Current agent version: ‘2.165.2’ Agent running as: ‘vstslinux’
Issue Description
Results are not being published from found XUNIT results files
No Result Found to Publish
Task logs
Starting: Publish Test Results
Task : Publish Test Results Description : Publish test results to Azure Pipelines Version : 2.166.0 Author : Microsoft Corporation Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
/opt/dotnet/dotnet --version 2.2.300 [warning]Atleast for one assembly start time was not obtained due to tag not present or parsing issue, total run duration will now be summation of time taken by each assembly Obtained XUnit Test Run Start Date: 2020-04-27T09:14:02.1505099Z and Completed Date: 2020-04-27T09:14:02.1505099Z No Result Found to Publish ‘/adopipelines/bp-vsts/BP-Linux-AgentOS/GPA2/_work/275/s/e2e-tests/tests/results.xml’. Async Command Start: Publish test results Async Command End: Publish test results Finishing: Publish Test Results
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
My bad, I tried with .xml as well. It works. you need to change the yml with input as
testResultsFormat: VSTest
instead oftestResultsFormat: xunit
Please try and let me know.
@navin22 Sorry I was only just about to get around to testing it. I can conform that my issues are resolved