Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 570
NiteLordz Avatar asked Aug 17 '19 15:08

NiteLordz


2 Answers

If you close VS2019 and delete the \.vs\{sln-name}\v16\TestStore folder, and open VS2019 up again, all the old tests in the Live Unit Testing Window are gone.

like image 120
Matthias Auswöger Avatar answered Oct 12 '22 11:10

Matthias Auswöger


Actually there is an option in Visual Studio 2019 that allows to "Delete Persisted Data" related to Live Unit Testing if data seems to be corrupted:

Visual Studio 2019: Live Unit Testing - Delete Persisted Data

Note that the mentioned button is inactive if Live Unit Testing is running. Stop Live Unit Testing to make button enabled.

like image 32
tomasz kucinski Avatar answered Oct 12 '22 10:10

tomasz kucinski