question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PublishTestResults - XUNIT No Result Found to Publish

See original GitHub issue

Required 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
navin22commented, Jun 1, 2020

My bad, I tried with .xml as well. It works. you need to change the yml with input as testResultsFormat: VSTest instead of testResultsFormat: xunit

Please try and let me know.

1reaction
roly445commented, Jun 4, 2020

@navin22 Sorry I was only just about to get around to testing it. I can conform that my issues are resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing xunit test results in Azure Devops fails with "No ...
The two files report1.xml and report2.xml get discovered properly but Azure DevOps says No Result Found to Publish and hesitates to publish them ......
Read more >
Publish Test Results 'No Result Found to Publish'
Hello, I am running some tests for REST services with newman and the results are being exported to a JUnit format file. After...
Read more >
PublishTestResults@2 - Publish Test Results v2 task
This table lists the fields reported in the Tests tab in a build or release summary, and the corresponding mapping with the attributes...
Read more >
Getting Test Results in Azure DevOps Pipelines
You no longer need to manually configure the test adapter path, because NuGet restored test adapters are automatically searched for. Sometimes you get...
Read more >
publish-test-results - Introduction to SpecSync for Azure DevOps
Option Description Default ‑‑runName The name of the Test Run to be created. get from test result file ‑‑runComment The comment field of the Test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found