I'm searching a way to debug my tests (mstest) .Net Core 2.0 in VSCode?
I didn't find nothing.
Thanks!
I'm searching a way to debug my tests (mstest) .Net Core 2.0 in VSCode?
I didn't find nothing.
Thanks!
Already posted this answer in another thread. Re-posting as I found this thread earlier and thought there was no easy way.
If you are using the latest version of VS Code (I'm using v1.29.0), debugging (a) unit test is in-built feature.
*Make sure you have built the project so that tests appear correctly with all options.
I set this up by creating a small .bat, defining a VS Code task and a launch definition. Details here: How does one debug an MSTest in VSCode?
You can't, use Visual Studio Community Edition 2017, it is free. And will run your tests projects.
Visual Code is awesome, but it is not a full fledged software developer IDE, though it seems close sometimes.
It best to open your .NET Core projects in Visual Studio sometimes and sometimes just use Visual Code, just depends on what you are trying to do.