1

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 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.