Live Unit Testing overview
Applies to: Visual Studio Visual Studio for Mac
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Live Unit Testing executes your unit tests automatically and in real time as you make code changes. This lets you refactor and change code with greater confidence. Live Unit Testing automatically executes all impacted tests as you edit your code to ensure that your changes do not introduce regressions.
Live Unit Testing indicates whether your unit tests adequately cover your code. It graphically depicts code coverage in real time. You can see at a glance how many tests cover each line of code and which lines are not covered by any unit tests.
If you have a solution that includes one or more unit test projects, you can enable Live Unit Testing by selecting Test > Live Unit Testing > Start from the top-level menu bar in Visual Studio.
Live Unit Testing is only available in Visual Studio Enterprise edition and is supported only in .NET.
To learn more about Live Unit Testing:
Try an introductory tutorial: Get started with Live Unit Testing.
Read detailed documentation: Use Live Unit Testing with Visual Studio Enterprise Edition.
Read the Live Unit Testing FAQ to learn what's new in Live Unit Testing as well as tips and techniques.