Repository navigation
Description
Describe the bug
AzureDevOpsTestResultsPublisher sends testNode.Uid.Value as the Azure DevOps automatedTestName. For MSTest that UID is an opaque GUID, so every published result identifies its test by GUID instead of by fully-qualified name.
Three consequences:
- Test history is orphaned. Azure DevOps resolves a different
testCaseReferenceIdfor what is the same test, so "Test history", "failing since" and its own flakiness analysis start from zero the moment a pipeline switches fromPublishTestResults@2to live publishing. - The UI shows a GUID where the automated test name belongs.
- The extension's own flaky-history features stop matching.
AzureDevOpsHistoryServicekeys its history dictionary by theautomatedTestNameit reads back from Azure DevOps, whileAzureDevOpsReporterlooks up withTestNodeIdentity.GetTestName(testNode)(the FQN). Once live publishing is the only writer of history, the two halves use different keys and--report-azdo-flaky-history/--report-azdo-demote-known-flakycan never match anything.
The extension already has the right helper, and its documentation says so explicitly — TestNodeIdentity.GetTestName:
TestMethodIdentifierProperty— the canonical, ECMA-335 compliant identity added by frameworks running natively on the platform. This is the property that maps to Azure DevOps'AutomatedTestName.
AzureDevOpsReporter and AzureDevOpsSlowTestReporter both use it. The publisher does not.
Version used
MSTest.Sdk 4.4.0-preview.26410.3 — Microsoft.Testing.Extensions.AzureDevOpsReport 2.4.0-preview.26410.3, Microsoft.Testing.Platform 2.4.0-preview.26410.3. .NET SDK 10.0.302, net10.0, windows-latest hosted agent. Reproduced identically on 2.4.0-preview.26409.6.
Steps To Reproduce
- Any MSTest project with the extension enabled:
<Project Sdk="MSTest.Sdk/4.4.0-preview.26410.3">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<EnableMicrosoftTestingExtensionsAzureDevOpsReport>true</EnableMicrosoftTestingExtensionsAzureDevOpsReport>
</PropertyGroup>
</Project>- Run in a pipeline step (
SYSTEM_ACCESSTOKENmapped):
dotnet test --report-azdo --publish-azdo-test-results
- Read a published result:
GET /_apis/test/Runs/{runId}/Results/{resultId}and look atautomatedTestName. - For the contrast, publish the same suite with
PublishTestResults@2and compareautomatedTestNameandtestCaseReferenceId.
Expected behavior
automatedTestName is the fully-qualified test name, as produced by TestNodeIdentity.GetTestName(testNode) and as the TRX/VSTest converters already emit — matching what PublishTestResults@2 publishes, so test identity and history survive the migration:
E2E.OIS.Tests.AuthenticationTests.LogoutFlow_ShouldSucceed
Actual behavior
The TestNode.Uid GUID is published. Same test, same pipeline, one day apart:
LIVE : refId=93454 automatedTestName=1b29c022-8cae-8e69-a060-a4d6ac1e90e8 storage=E2E
TASK : refId=25783 automatedTestName=E2E.OIS.Tests.AuthenticationTests.LogoutFlow_ShouldSucceed storage=e2e.dll
All 90 results of the live-published run carry a GUID. The UID is stable across builds — two consecutive builds produced the same GUID and the same testCaseReferenceId — so this is not flakiness in the identity itself; it is a stable identity disconnected from the one every previous run used.
The fully-qualified name is available on the very same TestNode: a TRX report from the same run records className="Probe.LivePublishProbe" name="FlakyPassesOnRetry", which resolves through the same property chain GetTestName walks.
Additional context
AzureDevOpsTestResultsPublisher.CreateTestCaseResult:
string value = testNode.Uid.Value; // <- becomes automatedTestName
...
CreateResult(testNode.DisplayName, value, automatedTestStorage, "Failed", ...);A related, smaller difference in the same identity tuple: automatedTestStorage is the assembly name without extension (E2E), whereas the agent publishes the file name (e2e.dll). Since Azure DevOps resolves the test-case reference from the name/storage pair, aligning both would let existing history carry over.
Activity
DanielGilOrtiz commentedon Aug 11, 2026
Filed this from my other account by mistake — I'm also the reporter of #10360.
Following up from this account.
[-]--publish-azdo-test-results publishes automatedTestName as the TestNode UID instead of the fully-qualified test name, orphaning Azure DevOps test history[/-][+]`--publish-azdo-test-results` publishes automatedTestName as the TestNode UID instead of the fully-qualified test name, orphaning Azure DevOps test history[/+]DanielGilOrtiz commentedon Aug 24, 2026
Hi Amaury Levé (@Evangelink), have you had a chance to review it? Thanks!