I have installed nunit to test my code. But I could only run dotnet test. I don't know how to config to run debug test
Also vscode has its Debug all tests command but it report this error
command 'vstest.execution.debugAll' not found
when I call it
Does it need omnisharp-vscode or roslyn to handle commands like these ?
We don't provide a way to do this today, but we're tracking a couple of options:
Does that help?
@Thaina in case you are not aware, the way that the C# extension normally supports running/debugging unit tests is via a CodeLens on the test methods. I wrote up some documentation: https://github.com/OmniSharp/omnisharp-vscode/wiki/How-to-run-and-debug-unit-tests
@DustinCampbell feel free to review/fix/add anything you want to that.
@gregg-miskelly Normally I don't open codelens because it make line of code too messy. Currently now I need to open codelens just for a times I need to debug and close it afterward
Hi Thaina! With the 1.13-beta4 release, we've added options that allow you to disable the "References" Code Lens independently from the "Run/Debug Test" Code Lenses. You can control them with the following options:
"csharp.referencesCodeLens.enabled": true,
"csharp.testsCodeLens.enabled": true
You can use the instructions here to install the latest beta release.
cc @rchande
@DustinCampbell Does that release also cope with running debug test from vscode command?
No. The issue tracking that is right here; https://github.com/OmniSharp/omnisharp-vscode/issues/421.
Most helpful comment
@gregg-miskelly Normally I don't open codelens because it make line of code too messy. Currently now I need to open codelens just for a times I need to debug and close it afterward