Skip to content

Commit

Permalink
Fix incorrect fully qualified name being passed to VSTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jun 14, 2024
1 parent bd373ba commit 47f5685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xunit.runner.visualstudio/Sinks/VsDiscoverySink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public void Dispose()

try
{
var result = new TestCase(testCase.TestClassNameWithNamespace, uri, source) { DisplayName = Escape(testCase.TestCaseDisplayName) };
var fqTestMethodName = $"{testCase.TestClassNameWithNamespace}.{testCase.TestMethodName}";
var result = new TestCase(fqTestMethodName, uri, source) { DisplayName = Escape(testCase.TestCaseDisplayName) };
result.SetPropertyValue(VsTestRunner.TestCaseUniqueIDProperty, testCase.TestCaseUniqueID);

if (testPlatformContext.DesignMode)
Expand Down

0 comments on commit 47f5685

Please sign in to comment.