
When Live Unit Testing is paused, you do not see any coverage visualization in the editor, but all the data that is collected so far is preserved. It is as simple as opening the Test menu, selecting Live Unit Testing, and choosing one of the following options:

To enable Live Unit Testing, go to the Test command of the top-level menu bar, choose “Live Unit Testing”, then “Start”:Īt any time, you can temporarily pause or completely stop Live Unit Testing for example, when you are in the middle of a refactoring, and you know that your tests will be broken for a while. Adaptable to work with three popular unit testing frameworks.Include/Exclude targeted test methods or projects for large solutions.Seamlessly debug failed test, edit and continue without having to restart.View coverage information in the editor as you type.The Live Unit Testing capabilities in Visual Studio 2017 Enterprise are highlighted below: It will also remind you when you need to write additional unit tests as you are making bug fixes and adding features. This will help you maintain quality by keeping the tests passing as you make changes. This is a productivity feature, which provides real-time feedback directly in the editor on how code changes are impacting your unit tests and your code coverage. It also includes an updated video that demos all these capabilities.

In this blog, we focus on all capabilities including some that were not mentioned in the earlier blog. This is a more comprehensive blog than the one we published in November. Live Unit Testing is present in the Enterprise edition of Visual Studio 2017 and it’s available for C# and VB projects that target the.
