vstest icon indicating copy to clipboard operation
vstest copied to clipboard

Attempting to associate test cases from Test Explorer in VS 2022/2026 Professional throws an exception

Open shepherdm3 opened this issue 4 weeks ago • 4 comments

I installed Visual Studio 2026 Professional on Monday and today updated to v18.1.0. Our test projects built with .NET 9 & 10 and currently reference Microsoft.NET.Test.Sdk v18.0.1 and use MSTest methods. As I had submitted a defect report for associating test cases from Test Explorer for VS 2022, I was curious to see how this works with the new IDE, but after opening TestExplorer, I was immediately disappointed to find that when I right-clicked on a test method and then clicked the 'Associate to Test Case' context menu item, the error in the image below is returned. Unfortunately, the same error is now also present in VS 2022 Professional which means there is no long any practical means of associating automated test methods in Visual Studio with the corresponding test cases in AZDO:

Image

shepherdm3 avatar Dec 11 '25 00:12 shepherdm3

I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  • https://github.com/microsoft/vstest/issues/15111

MihuBot avatar Dec 11 '25 00:12 MihuBot

Interesting to note that a co-worker reports this works as designed/expected in Visual Studio 2026 Community:

Image Image

shepherdm3 avatar Dec 11 '25 14:12 shepherdm3

Is that the same project / solution?

The error is coming from the new testing platform where test case association is not supported, and you already commented there: https://github.com/microsoft/testfx/issues/4477#issuecomment-3639549604

In VSTest everything should be working and if it does not please provide more info about your project so we can investigate.

nohwnd avatar Dec 11 '25 14:12 nohwnd

Is that the same project / solution?

My co-worker repeated the exercise with my project with no issues. I am currently updating my install of Visual Studio 2026 to replicate the individual workloads he is using in VS 2026 Community.

shepherdm3 avatar Dec 11 '25 14:12 shepherdm3

closing for now, please let me know if you were able to link it back to vstest, and not just mtp.

nohwnd avatar Dec 15 '25 16:12 nohwnd