You are here
Home > Programming > Live Unit Testing with Visual Studio 2017

Live Unit Testing with Visual Studio 2017

Live Unit Testing

Live Unit Testing has become a reality with the release of Visual Studio 2017. The next iteration of Microsoft’s world-class IDE which was released on the 7th of March 2017, has given developers a host of new and exciting features (a new-ish feature C# Interactive being a favorite of mine). Check out the video below and see how to enable this feature. This means that it provides visual indicators inside your code editor on code coverage as well as the result of your tests.

See more videos on the Developer Community YouTube Channel

Live Unit Testing in Visual Studio 2017

As you change code, so the code editor updates in real time. This updates you on the status of your unit tests. A blue stripe marks code without unit tests. A green check indicates tests that pass. A red cross indicates tests that fail. This gives developers an immediate view of the health of their code as they code. This allows them to address issues sooner rather than later.

Go check out my book on C# 7

Why is Live Unit Testing a big deal?

The best thing of all is that it enables developers to seamlessly view the unit test results. Therefore they can focus on important work. A lot of developers say that writing unit tests and continually re-evaluating those tests waste time. The non-intrusive nature of Live Unit Testing puts all that to an end. There is actually no reason now not to include unit test in your Visual Studio 2017 projects.

Take note that the Live Unit Testing feature is only available in Visual Studio 2017 Enterprise. To find out more about Visual Studio, head on over to the Visual Studio website. Developers can also download the free Community Edition. Compare the various Visual Studio editions to see which one suits you best.

Dirk Strauss
Dirk is a Software Developer from South Africa. He loves all things Technology and is slightly addicted to Jimi Hendrix. Apart from writing code, he also enjoys authoring books and articles. "I love sharing knowledge and connecting with people from around the world. It's the diversity that makes life so beautiful." Dirk feels very strongly that pizza is simply not complete without Tabasco, that you can never have too much garlic, and that cooking the perfect steak is an art he has almost mastered.

Similar Articles