简体   繁体   中英

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?

如果您关闭 VS2019 并删除\\.vs\\{sln-name}\\v16\\TestStore文件夹,然后再次打开 VS2019,Live Unit Testing 窗口中的所有旧测试都将消失。

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:实时单元测试 - 删除持久数据

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM