---
title: Start Live Unit Testing with Visual Studio 2017
description: With Visual Studio 2017, Microsoft has kicked up the developer unit testing experience a notch by adding a new feature called “Live Unit Testing.”
image: https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-1.png
---

# Start Live Unit Testing with Visual Studio 2017

Posted by David Jung - March 03, 2017

- [**](https://www.facebook.com/sharer/sharer.php?u=https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017)
- [**](https://www.linkedin.com/shareArticle?mini=true&url=https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017&title=&summary=&source=)
- [**](https://twitter.com/home?status=)
- [**](mailto:?&subject=https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017&body=https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017)

**

![header-picture](https://cdn2.hubspot.net/hubfs/685080/IMG-TurboSodium/Sodium%20v2/blog/woman-notebook-working-girl.png "header-picture")

In Visual Studio 2015, Microsoft introduced a feature called IntelliTest. It allows developers to go into their existing code base and create developer unit tests where there have not been any unit tests before. Even if the code has some level of unit test coverage, IntelliTest could be used to help uncover different test pathway that you might not have considered before. If you are not familiar with IntelliTest, check out our previous blogs on the subject [here](https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/http/www.incyclesoftware.com/blog/2015/07/prepare-run-intellitest) and [here](https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/http/www.incyclesoftware.com/blog/2015/07/better-unit-testing-visual-studio-2015s-intellitest/).

With Visual Studio 2017 (VS2017), Microsoft has kicked up the developer unit testing experience a notch by adding a new feature called “Live Unit Testing.” When enabled, Live Unit Testing will automatically run all the unit test in your solution in the background, let you know which ones have passed and failed, and hints of their code coverage in the left gutter of the code window.

[![InCycle, Software, VSTS, DevOps, Azure, Microsoft](https://blogs.incyclesoftware.com/hs-fs/hubfs/Imported_Blog_Media/DJ-Blog-1.png?width=406&height=169&name=DJ-Blog-1.png)](https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-1.png)

 

 

 

 

 

 

The dash indicates that the code does not have any test coverage. The red X signifies the line was executed by at least one unit test and failed. The green checkmark signifies the code was executed and any tests that ran passed.

**Getting Started**

Live Unit Testing supports the top three unit testing frameworks: MSTest, NUnit, and xUnit. If you are using any of these frameworks, you will need to make sure you have latest test adapters and frameworks in your project, which can be obtained through NuGet.

- MSTest - you need MSTest.TestAdapter 1.1.4-preview and MSTest.TestFramework 1.0.5-preview (or greater)
- NUnit – you need NUnit3TestAdapter 3.5.1 and NUnit version 3.5.0 (or greater)
- XUnit – you need xunit.runner.visualstudio 2.2.0-beta3-build1187 and xunit 2.0 (or greater)

If you do not have the right adapters and frameworks in your solution, don’t worry, Live Unit Testing will remind you in the output window with a message similar to the following:

```
[08:36:36.548 Error] No test adapters are referenced by this solution. If you have a test project, add a NuGet reference to a test adapter corresponding to the test framework used in order to run the tests. If you already have the required NuGet reference in your test project, performing a NuGet restore may resolve the issue.
[08:36:36.548 Info] Start failed.
[08:36:36.588 Info] Live Unit Testing stopped.
```

To turn on Live Unit Testing, simply select **Live Unit Testing > Start** from the **Test** menu. Once the service starts, it will run all the unit tests in your project. You can pause, stop, or restart the service at any time.

The real value of Live Unit Testing is when the service is running. As soon as you start making changes to your code under test or add/update a TestMethod, Live Unit Testing will be checking your code to make sure your test passes. If your tests are supposed to fail because you are making some major changes, it can help you figure out what TestMethods you need to update. If you don’t expect your tests to fail and they are, then you might have to rethink your changes.

[![InCycle, Azure, VSTS, Visual Studio, DevOps](https://blogs.incyclesoftware.com/hs-fs/hubfs/Imported_Blog_Media/DJ-Blog-2.png?width=435&height=179&name=DJ-Blog-2.png)](https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-2.png)

 

 

 

 

 

 

If your code is failing its tests, you can hover over the red X and see how many tests cover that particular line of code. To see which tests are actually failing, clicking on the red X will bring up a dialog that shows which tests have passed and failed. If you hover your mouse over the failed test in the list, you will see the exception message to why it failed. Then you can click on the test name and you will be taken to the test code.

[![InCycle, Azure, DevOps, DevTest, Azure, Cloud](https://blogs.incyclesoftware.com/hs-fs/hubfs/Imported_Blog_Media/DJ-Blog-3.png?width=917&height=196&name=DJ-Blog-3.png)](https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-3.png)

You might be thinking, “I have hundreds (or thousands) of unit tests in my solution...I don’t want this service to run them all.” No worries! You have the option to include or exclude any Unit Test Class files you want Live Unit Testing to use. Select the Unit Test class you want on include or exclude from the context menu.

[![InCycle, Software, VSTS, Visual Studio 2017, Training, Consulting](https://blogs.incyclesoftware.com/hs-fs/hubfs/Imported_Blog_Media/DJ-Blog-4.png?width=553&height=145&name=DJ-Blog-4.png)](https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-4.png)

 

 

 

 

 

Unfortunately, at this time, you cannot select specific TestMethods nor is there any indicator either in Solution Explorer or Test Explorer which tests have been included or excluded.

**It make you change the way you code**

Everyone seem to tote the “test first” or “test driven development” approach to coding and everyone has their own implementation of said approaches. However, regardless of your approaches, using Live Unit Testing just might change the way you code in general. I found the engine to be really fast and when I was using it on a recent project, it made me think twice about the code I was about to update because I going to introduce code to resolve the issue I was tasked with but I immediately found out that lines which had green checkmarks came up with red Xs as soon as typed in my “solution.” After a few minutes, I realized I was thinking too narrow about my solution and needed to broaden my scope. Having the immediate feedback definitely helped me realize I could have introduced more problems then what I attempting to fix. I would have been tasked to correct any addition mistakes I would have introduced. Once I broadened my view, I was able to make the code changes and all indicates stayed green (at least for now).

Excelsior!

 Topics: [Blog](https://blogs.incyclesoftware.com/topic/blog), [IntelliTest](https://blogs.incyclesoftware.com/topic/intellitest), [Microsoft](https://blogs.incyclesoftware.com/topic/microsoft), [NUnit](https://blogs.incyclesoftware.com/topic/nunit), [Visual Studio 2017](https://blogs.incyclesoftware.com/topic/visual-studio-2017), [VS2017](https://blogs.incyclesoftware.com/topic/vs2017), [code](https://blogs.incyclesoftware.com/topic/code), [IntelliTes](https://blogs.incyclesoftware.com/topic/intellites), [Live Unit Testing](https://blogs.incyclesoftware.com/topic/live-unit-testing), [MSTest](https://blogs.incyclesoftware.com/topic/mstest), [TestMethods](https://blogs.incyclesoftware.com/topic/testmethods), [XUnit](https://blogs.incyclesoftware.com/topic/xunit)

---

### Recent Posts

By InCycle - 03 March, 2017

#### InCycle Wins Prestigious Microsoft Global Partner of the Year Award

[![read more](https://cdn2.hubspot.net/hubfs/685080/IMG-TurboSodium/Sodium%20v2/blog/arrow-recent-blog-post.png "read more")](https://blogs.incyclesoftware.com/incycle-wins-prestigious-microsoft-global-partner-of-the-year-award)

By InCycle - 03 March, 2017

#### Top 5 Questions On Elevate for App Modernization

[![read more](https://cdn2.hubspot.net/hubfs/685080/IMG-TurboSodium/Sodium%20v2/blog/arrow-recent-blog-post.png "read more")](https://blogs.incyclesoftware.com/top-five-questions-on-elevate-for-app-modernization)

By InCycle - 03 March, 2017

#### GitHub Universe 2025 Top Announcements

[![read more](https://cdn2.hubspot.net/hubfs/685080/IMG-TurboSodium/Sodium%20v2/blog/arrow-recent-blog-post.png "read more")](https://blogs.incyclesoftware.com/github-universe-2025-top-announcements)

---

### Subscribe to Blog

### ![2025 Microsoft Partner of the Year Winner: InCycle Software](https://blogs.incyclesoftware.com/hs-fs/hubfs/InCycle%202025%20Microsoft%20PoY%20Badge.png?width=377&height=223&name=InCycle%202025%20Microsoft%20PoY%20Badge.png)

### About this blog

Since 2002, InCycle has been providing challenging thought leadership to help customers successfully combine modern application designs, IT platforms and DevOps practices to achieve new levels of success. As a leader in app modernization, these blogs are written by our expert consultants and provide useful information to help on your journey to the cloud and better software. Happy reading!

### Platform Engineering Webinar on Demand

PE deep dive and demo!

[![Learn More!](https://no-cache.hubspot.com/cta/default/707613/aae0556f-2d26-4ce4-9b32-e7bebd443c9a.png)](https://cta-redirect.hubspot.com/cta/redirect/707613/aae0556f-2d26-4ce4-9b32-e7bebd443c9a)

### Recent Posts

### Migrating to GitHub?

Start with a GitHub Migration Strategy and Roadmap (at no cost!)

[![Learn More!](https://no-cache.hubspot.com/cta/default/707613/312dc03f-1f78-4907-aaaf-3c0aa3cccd8f.png)](https://cta-redirect.hubspot.com/cta/redirect/707613/312dc03f-1f78-4907-aaaf-3c0aa3cccd8f)

### Posts by Topic

- [Blog (194)](https://blogs.incyclesoftware.com/topic/blog)
- [Video (32)](https://blogs.incyclesoftware.com/topic/video)
- [Azure (25)](https://blogs.incyclesoftware.com/topic/azure)
- [DevOps (20)](https://blogs.incyclesoftware.com/topic/devops)
- [GitHub (13)](https://blogs.incyclesoftware.com/topic/github)
- [InRelease (12)](https://blogs.incyclesoftware.com/topic/inrelease)
- [Containers (11)](https://blogs.incyclesoftware.com/topic/containers)
- [release management (11)](https://blogs.incyclesoftware.com/topic/release-management)
- [AKS (10)](https://blogs.incyclesoftware.com/topic/aks)
- [CI/CD (10)](https://blogs.incyclesoftware.com/topic/ci-cd)
- [Kubernetes (10)](https://blogs.incyclesoftware.com/topic/kubernetes)
- [Azure DevOps (9)](https://blogs.incyclesoftware.com/topic/azure-devops)
- [Migration (9)](https://blogs.incyclesoftware.com/topic/migration)
- [Platform Engineering (PE) (9)](https://blogs.incyclesoftware.com/topic/platform-engineering-pe)
- [GenAI (8)](https://blogs.incyclesoftware.com/topic/genai)
- [Microsoft Azure (8)](https://blogs.incyclesoftware.com/topic/microsoft-azure)
- [Visual Studio (8)](https://blogs.incyclesoftware.com/topic/visual-studio)
- [tfs (8)](https://blogs.incyclesoftware.com/topic/tfs)
- [Awards (7)](https://blogs.incyclesoftware.com/topic/awards)
- [Big Data (6)](https://blogs.incyclesoftware.com/topic/big-data)
- [Innovation (6)](https://blogs.incyclesoftware.com/topic/innovation)
- [Microsoft (6)](https://blogs.incyclesoftware.com/topic/microsoft)
- [agile (6)](https://blogs.incyclesoftware.com/topic/agile)
- [vsts (6)](https://blogs.incyclesoftware.com/topic/vsts)
- [Data (5)](https://blogs.incyclesoftware.com/topic/data)
- [Modernization (5)](https://blogs.incyclesoftware.com/topic/modernization)
- [App Modernization (4)](https://blogs.incyclesoftware.com/topic/app-modernization)
- [Automated Testing (4)](https://blogs.incyclesoftware.com/topic/automated-testing)
- [Data & AI (4)](https://blogs.incyclesoftware.com/topic/data-ai)
- [Event (4)](https://blogs.incyclesoftware.com/topic/event)
- [MLOps (4)](https://blogs.incyclesoftware.com/topic/mlops)
- [Modern Apps (4)](https://blogs.incyclesoftware.com/topic/modern-apps)
- [Visual Studio 2017 (4)](https://blogs.incyclesoftware.com/topic/visual-studio-2017)
- [DevTest (3)](https://blogs.incyclesoftware.com/topic/devtest)
- [Events (3)](https://blogs.incyclesoftware.com/topic/events)
- [Governance (3)](https://blogs.incyclesoftware.com/topic/governance)
- [VSO (3)](https://blogs.incyclesoftware.com/topic/vso)
- [Data Analytics (2)](https://blogs.incyclesoftware.com/topic/data-analytics)
- [Docker (2)](https://blogs.incyclesoftware.com/topic/docker)
- [Integration (2)](https://blogs.incyclesoftware.com/topic/integration)
- [Microsoft Connect (2)](https://blogs.incyclesoftware.com/topic/microsoft-connect)
- [Mobile Development (2)](https://blogs.incyclesoftware.com/topic/mobile-development)
- [RM (2)](https://blogs.incyclesoftware.com/topic/rm)
- [SQL (2)](https://blogs.incyclesoftware.com/topic/sql)
- [SaaS (2)](https://blogs.incyclesoftware.com/topic/saas)
- [TFS 15 Preview (2)](https://blogs.incyclesoftware.com/topic/tfs-15-preview)
- [TFS 2017 (2)](https://blogs.incyclesoftware.com/topic/tfs-2017)
- [Uncategorized (2)](https://blogs.incyclesoftware.com/topic/uncategorized)
- [Visual Studio 2015 (2)](https://blogs.incyclesoftware.com/topic/visual-studio-2015)
- [Xamarin (2)](https://blogs.incyclesoftware.com/topic/xamarin)
- [ADX (1)](https://blogs.incyclesoftware.com/topic/adx)
- [AI (1)](https://blogs.incyclesoftware.com/topic/ai)
- [Android (1)](https://blogs.incyclesoftware.com/topic/android)
- [Application Monitoring (1)](https://blogs.incyclesoftware.com/topic/application-monitoring)
- [Apps (1)](https://blogs.incyclesoftware.com/topic/apps)
- [BI (1)](https://blogs.incyclesoftware.com/topic/bi)
- [Brian Harry (1)](https://blogs.incyclesoftware.com/topic/brian-harry)
- [Cloud Azure (1)](https://blogs.incyclesoftware.com/topic/cloud-azure)
- [Cloud Services (1)](https://blogs.incyclesoftware.com/topic/cloud-services)
- [Connect (1)](https://blogs.incyclesoftware.com/topic/connect)
- [Connect 2016 (1)](https://blogs.incyclesoftware.com/topic/connect-2016)
- [Consultants (1)](https://blogs.incyclesoftware.com/topic/consultants)
- [Cosmos DB (1)](https://blogs.incyclesoftware.com/topic/cosmos-db)
- [Data Center (1)](https://blogs.incyclesoftware.com/topic/data-center)
- [Development (1)](https://blogs.incyclesoftware.com/topic/development)
- [EA (1)](https://blogs.incyclesoftware.com/topic/ea)
- [Git (1)](https://blogs.incyclesoftware.com/topic/git)
- [Hybrid (1)](https://blogs.incyclesoftware.com/topic/hybrid)
- [IntelliTes (1)](https://blogs.incyclesoftware.com/topic/intellites)
- [IntelliTest (1)](https://blogs.incyclesoftware.com/topic/intellitest)
- [Lab Management (1)](https://blogs.incyclesoftware.com/topic/lab-management)
- [Live Unit Testing (1)](https://blogs.incyclesoftware.com/topic/live-unit-testing)
- [Load Testing (1)](https://blogs.incyclesoftware.com/topic/load-testing)
- [MSDN (1)](https://blogs.incyclesoftware.com/topic/msdn)
- [MSTest (1)](https://blogs.incyclesoftware.com/topic/mstest)
- [MTM (1)](https://blogs.incyclesoftware.com/topic/mtm)
- [Machine Learning (1)](https://blogs.incyclesoftware.com/topic/machine-learning)
- [Media & Entertainment (1)](https://blogs.incyclesoftware.com/topic/media-entertainment)
- [Microsoft Visual Studio (1)](https://blogs.incyclesoftware.com/topic/microsoft-visual-studio)
- [Microsoft nationally managed partner (1)](https://blogs.incyclesoftware.com/topic/microsoft-nationally-managed-partner)
- [NUnit (1)](https://blogs.incyclesoftware.com/topic/nunit)
- [OpsHub (1)](https://blogs.incyclesoftware.com/topic/opshub)
- [PaaS (1)](https://blogs.incyclesoftware.com/topic/paas)
- [Pipelines (1)](https://blogs.incyclesoftware.com/topic/pipelines)
- [PowerShell (1)](https://blogs.incyclesoftware.com/topic/powershell)
- [Principles and Practices of DevOps (1)](https://blogs.incyclesoftware.com/topic/principles-and-practices-of-devops)
- [Programs (1)](https://blogs.incyclesoftware.com/topic/programs)
- [RC (1)](https://blogs.incyclesoftware.com/topic/rc)
- [Release Candidate (1)](https://blogs.incyclesoftware.com/topic/release-candidate)
- [SQL Databases (1)](https://blogs.incyclesoftware.com/topic/sql-databases)
- [SQL server (1)](https://blogs.incyclesoftware.com/topic/sql-server)
- [SSDT (1)](https://blogs.incyclesoftware.com/topic/ssdt)
- [Software (1)](https://blogs.incyclesoftware.com/topic/software)
- [Subscription & Billing Management (1)](https://blogs.incyclesoftware.com/topic/subscription-billing-management)
- [TFS 15 (1)](https://blogs.incyclesoftware.com/topic/tfs-15)
- [TFS 2015 update (1)](https://blogs.incyclesoftware.com/topic/tfs-2015-update)
- [TFS 2016 (1)](https://blogs.incyclesoftware.com/topic/tfs-2016)
- [TFS ALM (1)](https://blogs.incyclesoftware.com/topic/tfs-alm)
- [TestMethods (1)](https://blogs.incyclesoftware.com/topic/testmethods)
- [UI (1)](https://blogs.incyclesoftware.com/topic/ui)
- [UX (1)](https://blogs.incyclesoftware.com/topic/ux)
- [VS2017 (1)](https://blogs.incyclesoftware.com/topic/vs2017)
- [Validation (1)](https://blogs.incyclesoftware.com/topic/validation)
- [Virtual Machines (1)](https://blogs.incyclesoftware.com/topic/virtual-machines)
- [WPC 2016 (1)](https://blogs.incyclesoftware.com/topic/wpc-2016)
- [Web (1)](https://blogs.incyclesoftware.com/topic/web)
- [Windows (1)](https://blogs.incyclesoftware.com/topic/windows)
- [World Partner Conference (1)](https://blogs.incyclesoftware.com/topic/world-partner-conference)
- [XUnit (1)](https://blogs.incyclesoftware.com/topic/xunit)
- [alm (1)](https://blogs.incyclesoftware.com/topic/alm)
- [automation (1)](https://blogs.incyclesoftware.com/topic/automation)
- [build (1)](https://blogs.incyclesoftware.com/topic/build)
- [code (1)](https://blogs.incyclesoftware.com/topic/code)
- [nationally managed partner (1)](https://blogs.incyclesoftware.com/topic/nationally-managed-partner)
- [sql server 2008 (1)](https://blogs.incyclesoftware.com/topic/sql-server-2008)
- [unit testing (1)](https://blogs.incyclesoftware.com/topic/unit-testing)
- [vm (1)](https://blogs.incyclesoftware.com/topic/vm)

[see all](https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017#)

### Blog Archive

- [November 2012 (17)](https://blogs.incyclesoftware.com/archive/2012/11)
- [September 2025 (14)](https://blogs.incyclesoftware.com/archive/2025/09)
- [October 2014 (12)](https://blogs.incyclesoftware.com/archive/2014/10)
- [July 2012 (10)](https://blogs.incyclesoftware.com/archive/2012/07)
- [October 2012 (9)](https://blogs.incyclesoftware.com/archive/2012/10)

- [**](https://twitter.com/incyclesoftware?lang=en)
- [**](https://ca.linkedin.com/company/incycle-software)
- [**](https://www.facebook.com/InCycleSoftware/)

### About us

At InCycle, we believe there is always a better way and today, that includes the cloud.

[![InCycle Microsoft Partner](https://blogs.incyclesoftware.com/hs-fs/hubfs/Incycle%202017%20website%20resources/logo-InCycle-New-white.png?width=200&name=logo-InCycle-New-white.png "InCycle Microsoft Partner")](https://www.incyclesoftware.com/)

### Learn more

- [Why Incycle?](https://www.incyclesoftware.com/why-incycle)
- [Success Stories](https://www.incyclesoftware.com/customer-success-stories)
- [Events](https://www.incyclesoftware.com/events)
- [Careers](https://www.incyclesoftware.com/careers)
- [About](https://www.incyclesoftware.com/about-incycle-software)

 

### 1-800-565-0510 [info@incyclesoftware.com](mailto:info@incyclesoftware.com) 

### ![Microsoft GitHub Verified Partner](https://blogs.incyclesoftware.com/hs-fs/hubfs/GitHub%20Verified%20Partner%20-%20white-SQUARE.png?width=256&height=57&name=GitHub%20Verified%20Partner%20-%20white-SQUARE.png) ![Data & AI Solutions Partner](https://blogs.incyclesoftware.com/hs-fs/hubfs/Data%20%26%20AI%20Solutions%20Partner.png?width=125&height=144&name=Data%20%26%20AI%20Solutions%20Partner.png) ![Digital & App Innovation Solutions Partner](https://blogs.incyclesoftware.com/hs-fs/hubfs/Digital%20%26%20App%20Innovation%20Solutions%20Partner.png?width=125&height=144&name=Digital%20%26%20App%20Innovation%20Solutions%20Partner.png)

 

© 2025 InCycle Software

[Privacy policy](https://www.incyclesoftware.com/privacy)

**

![](https://px.ads.linkedin.com/collect/?pid=302756&fmt=gif) ![](https://px.ads.linkedin.com/collect/?pid=302756&fmt=gif)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "David Jung",
    "url" : "https://blogs.incyclesoftware.com/author/david-jung"
  },
  "datePublished" : "2017-03-03T21:23:00.000Z",
  "headline" : "Start Live Unit Testing with Visual Studio 2017",
  "image" : [ "https://blogs.incyclesoftware.com/hubfs/Imported_Blog_Media/DJ-Blog-1.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://blogs.incyclesoftware.com/http/www.incyclesoftware.com/blog/2017/03/start-live-unit-testing-visual-studio-2017",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blogs.incyclesoftware.com/hubfs/logo-InCycle-New-Blue---transparent.png"
    },
    "name" : "InCycle Software Inc."
  }
}
```