Visual Studio 测试资源管理器窗口不刷新 [英] Visual Studio Test Explorer window not refreshing

查看:52
本文介绍了Visual Studio 测试资源管理器窗口不刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一天中,我在 Visual Studio 2017 中的测试资源管理器窗口多次锁定.虽然它不会使 VS 崩溃,但当受到影响时,我无法运行任何测试,因为右键单击测试时没有任何选项可用....

Multiple times throughout the day, my Test Explorer window in Visual Studio 2017 is locking up. Whilst it doesn't crash VS, when affected I can't run any tests as none of the options are available when right clicking on a test....

我在不同的项目中混合使用了 NUnit 和 SpecFlow+ 测试.清理和重建解决方案不起作用,测试资源管理器窗口不会改变.尝试使用NUnit 测试(点击运行)"选项也无济于事.

I have a mixture of NUnit and SpecFlow+ tests in different projects. Cleaning and rebuilding the solution doesn't work, the test explorer window doesn't change. Attempting to use the 'NUnit test (click to run)' option also does nothing.

解决此问题的唯一方法是重新启动 Visual Studio,这非常令人沮丧.

The only way to resolve this issue is to restart Visual Studio which is highly frustrating.

有人知道可能是什么问题吗?

Anyone know what the issue could be?

谢谢

推荐答案

我也遇到了同样的问题,作为一种解决方法,我卸载了我的测试项目,然后重新加载回来;然后再次运行测试.这次它刷新了测试资源管理器 :)

I was also facing the same issue, as a workaround I Unloaded my test project and then Reloaded back; then ran the test again. This time it refreshed the Test explorer :)

我的 VS 版本:VS Professional 2019 版本 16.9.6.

My VS version: VS Professional 2019 Version 16.9.6.

注意:我必须对我的所有测试项目都这样做.

Note: I had to do this to all my Test projects.

这篇关于Visual Studio 测试资源管理器窗口不刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆