Introducing Live Unit Testing

Live Unit Testing is a technology available in Visual Studio 2017 version 15.3 that executes your unit tests automatically in real time as you make code changes. Live Unit Testing:

  • 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 break tests.

  • Indicates whether your unit tests adequately cover your code and shows code not covered by unit tests. Live Unit Testing graphically depicts code coverage in real time so that you can see at a glance both 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 Visual Studio menu.

To learn more about Live Unit Testing:

Code testing tools
Unit test your code