-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies, switch the way debugger launching works
- Loading branch information
1 parent
1d50be3
commit 41e8dc0
Showing
4 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/xunit.runner.visualstudio/Utility/DebuggerProcessLauncher.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; | ||
using Xunit.v3; | ||
|
||
namespace Xunit.Runner.VisualStudio; | ||
|
||
internal class DebuggerProcessLauncher(IFrameworkHandle2 frameworkHandle2) : | ||
OutOfProcessTestProcessLauncherBase | ||
{ | ||
protected override ITestProcess? StartTestProcess( | ||
string executable, | ||
string executableArguments, | ||
string? responseFile) | ||
{ | ||
var testProcess = LocalTestProcess.Start(executable, executableArguments, responseFile); | ||
if (testProcess is null) | ||
return null; | ||
|
||
frameworkHandle2.AttachDebuggerToProcess(testProcess.ProcessID); | ||
return testProcess; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,7 @@ public void LogWarning( | |
{ | ||
loggerHelper.LogWarning("{0}", message); | ||
} | ||
|
||
public void WaitForAcknowledgment() | ||
{ } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters