I have created the ASP .Net core project and i can able to run & debug that using visual studio code. But when i try to run the unit test cases in visual studio code, I could able to run the test cases by dotnet run command but i could not able to find a way to debug it using VS Code. I would like know about debugging the Nunit test cases of ASP.Net core projects using VS Code
1 Answer
You should be able to do that using the CodeLens feature. Make sure you've installed the C# extension on your VS Code instance. Refer to this link for more information.
You also need to make sure if you included required packages corresponding to unit testing like "Microsoft.NET.Test.Sdk", "NUnit3TestAdapter". You can find more about it here.