Automated test results from pipeline not showing in quality dashboard after 2025 upgrade

We upgraded to the 2025 version last month and now our automated test results aren’t appearing in Azure Test Plans quality dashboards. The pipeline runs complete successfully with green checkmarks, but the Test Plans dashboard shows zero test executions for the past 3 weeks.

Our PublishTestResults task seems to execute without errors:

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

The release gates are now blocked because the quality metrics can’t be calculated. Has anyone encountered this issue with the 2025 schema changes? We’re using Azure Test Plans for traceability to requirements.

That explains it. Our test runs are being created but orphaned from the test plan context. Do you have an example of the REST API approach? We need this working before our next release gate evaluation.

The automatic association was deprecated in 2025. You now need to either add the testRunTitle and testPlanId parameters to PublishTestResults, or use the Azure DevOps REST API to create test runs explicitly before publishing results. The schema changes require explicit linking for traceability. This affects how quality dashboards aggregate data across test plans.

Thanks Sarah. I checked our pipeline and we’re not specifying any test plan ID or run title. Should the PublishTestResults task automatically associate results with Test Plans, or do we need additional configuration now?