Running Unit Tests in VS Code for .NET Core 2.0

Опубликовано: 27 Октябрь 2017
на канале: Wes Doyle
28,997
275

In this episode, I look at how to create a custom task in Visual Studio code to run unit tests with NUnit and dotnet test. I bind that task to a custom keyboard shortcut to provide a quick and easy way to kick off unit tests while writing code.

If you're following along directly, you'll want to install the libraries I show in the demo:
NUnit
NUnit Console
NUnit3TestAdapter
Microsoft.NET.Test.Sdk

Link to NUnit NuGet page: https://www.nuget.org/packages/NUnit/
See this page for instructions on installing NuGet from the console.

NUnit GitHub repo:
https://github.com/nunit/nunit

Installation guide from the NUnit docs:
https://github.com/nunit/docs/wiki/In...

If you have any questions or requests for future episodes, leave them in the comments below!

GitHub repo with code from this video:
https://github.com/wesdoyle/5-minute-...


Смотрите видео Running Unit Tests in VS Code for .NET Core 2.0 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Wes Doyle 27 Октябрь 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 28,997 раз и оно понравилось 275 людям.