Questions tagged [live-unit-tests]

Questions about the Live Unit Testing feature of Visual Studio 2017 Enterprise Edition. Live Unit Testing automatically runs unit tests affected by edits to C# and Visual Basic source and displays test results and test coverage data alongside those edits.

The Live Unit Testing capability is only available in the Enterprise Edition of Visual Studio.

23 questions
64
votes
4 answers

Why do I get a "No test adapters are referenced by this solution" error message?

When I start a Live Unit Tests session on my solution in visual studio 2017, I get the following message: 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 …
Lorentz Vedeler
  • 5,101
  • 2
  • 29
  • 40
42
votes
7 answers

Bug: VS2017 Live Unit Testing - only minus's - doesn't work

TL;DR; Edit 6: I have narrowed it down and provided 5 steps to reproduce the problem/bug. Create a VS2017 c# Console App (.Net Full Framework) Add a method to the Program.cs and make the class public:   public class Program { static void…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
9
votes
2 answers

Visual Studio Live Unit Test and Old Tests

I am using Visual Studio 2019 with Live Unit Testing turned on and everything is working fine until I delete a unit test. Now the old unit test is showing as a build failure (even though it doesn't exist anymore). How can I clear this?
NiteLordz
  • 597
  • 2
  • 18
7
votes
2 answers

Live unit testing exclude tests

I know it is possible to exclude the whole test project(s) from Live Unit Testing by right clicking on the test project and selecting the "Live Unit Testing" context menu. But in my solution I have some long running/resource intensive tests, which I…
Alex M
  • 2,410
  • 1
  • 24
  • 37
5
votes
1 answer

Live Unit testing is not working "Failed to initialize client proxy: could not connect to test process."

When Trying to activate live unit testing on VS 2017 I get this error: [TestRunner 1] Failed to initialize client proxy: could not connect to test process. FatalError - System.AggregateException: One or more errors occurred. --->…
4
votes
4 answers

Every test in project says "Excluded from Live Unit Testing"?

I have the test adapter & framework packages added per the docs https://learn.microsoft.com/en-us/visualstudio/test/live-unit-testing-faq?view=vs-2017. I see the "beaker" symbol\icon beside each test, but hovering says it's Excluded from live unit…
Steve McNiven-Scott
  • 1,770
  • 2
  • 15
  • 29
3
votes
0 answers

Visual studio 2017 Live Unit Testing does not work

Hello I'm getting a very strange exception (object reference not set to an instance of object) when using Visual studio 2017 Live Unit Testing if I run this test through Test Explorer->Run All all works fine and it’s also work in debugging but Live…
user45245
  • 845
  • 1
  • 8
  • 18
2
votes
1 answer

How can I ignore obsolete type errors when running Live Unit Testing in VS 2022 enterprise?

I have a solution with about 58 projects, including 10 test projects. There's only one I'm interested in running, that relates to my team's work. I can run the test project manually from the Test Explorer, and it builds with all tests passing…
2
votes
0 answers

Live Unit Testing "Unable to open configSource file" error

I have a Helper project H, with a config file that is to be used as a shared configSource file from other projects. The code in file (SharedConnectionString.config):
Fábio
  • 477
  • 5
  • 12
2
votes
1 answer

Crashing Visual Studio Live Unit Testing

I´m a new user in stackoverflow and this is my problem: As part of my work, we recently installed VS 2017 Enterprise Edition. Everything was fine untill few weeks ago the Live Unit Testing module stop working. Does enyone was able to resolve this…
XavierHdz
  • 71
  • 3
2
votes
1 answer

Visual Studio 2017 community/Professional - Live Unit Testing

I'm looking for a extension/plugin to allow live unit testing in VS 2017 Community or Professional. I understand that this feature is available on the enterprise version, however I wanted to see if anyone knows of any alternatives out there without…
Jw1422
  • 58
  • 1
  • 9
2
votes
1 answer

Visual Studio 2017 project reference support between .net standard and .net core

I have a .Net standard 2.0 project in a Visual Studio solution that contains some Azure functions. In the same solution, I've created a .Net Core 2.0 Unit Test project. I've added a project reference from the .Net Core Unit Test project to the…
1
vote
1 answer

How run C# Unit tests in docker container

i Have problem with run Unit tests in docker container. I'm create ApiTests project with Nunit tests for custom class methods. Tests successfully run. Then create UnitApiTestsService project which use ApiTests.dll like: var dockerEnvironment =…
kertak
  • 33
  • 1
  • 5
1
vote
1 answer

VS 2017 Live Unit Testing persisted data directory is read only

I'm having an issue with live unit testing, and have found that the solution may be to set a different persisted data directory (seen below). I try to do this, but that field is read-only for me. Running VS as administrator does nothing. What could…
apoteet
  • 742
  • 5
  • 21
1
vote
2 answers

Could not load file or assembly 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version= 1.7.0.0' with visual studio 2017

I started live unit testing with visual studio 2017 (15.7.1). After I switch the branch and start the project, an error message comes up saying the following: Could not load file or assembly 'Microsoft.CodeAnalysis.LiveUnitTesting.Runtime, version=…
1
2