Skip to content

How to debug unit test using nvim #2562

Answered by bradwilson
lillo42 asked this question in Question
Discussion options

You must be logged in to vote

VS Code (or more specifically, Omnisharp) runs unit tests by utilizing the VSTest adapters (that's what xunit.runner.visualstudio is). The code for launching is here: https://github.com/OmniSharp/omnisharp-vscode/blob/1d477d2e0495a9a7d76c7856dc4fe1a46343b7e1/src/features/dotnetTest.ts#L344-L379

I'm not sure that's going to be super helpful, since it relies upon VS Code to launch the debugger on its behalf (owing to the fact that the .NET Debugger that Omnisharp is using is the closed-source debugger from Microsoft). I honestly have no idea what's involved in getting netcoredbg to launch dotnet test within its debugger; it uses child processes for what it does, so the debugger would need t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bradwilson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants