简体   繁体   English

Visual Studio Live 单元测试和旧测试

[英]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.我正在使用 Visual Studio 2019 并打开 Live Unit Testing,一切正常,直到我删除单元测试。 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 中有一个选项允许“删除与实时单元测试相关的持久数据”:

Visual Studio 2019:实时单元测试 - 删除持久数据

Note that the mentioned button is inactive if Live Unit Testing is running.请注意,如果 Live Unit Testing 正在运行,则上述按钮处于非活动状态。 Stop Live Unit Testing to make button enabled.停止实时单元测试以启用按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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