使用 xUnit 的 VS2015 CE Update 3 中的测试资源管理器为空 [英] Test explorer empty in VS2015 CE Update 3 with xUnit

查看:23
本文介绍了使用 xUnit 的 VS2015 CE Update 3 中的测试资源管理器为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将 VS2015 CE 升级到 Update 3,并意识到测试资源管理器停止正常工作.我有 3 个测试项目,所有项目都带有这些 NuGet 包:

I just upgraded VS2015 CE to Update 3 and realized that Test Explorer stopped working properly. I had 3 test projects, all of them with these NuGet packages:

<package id="Castle.Core" version="3.3.3" targetFramework="net452" />
<package id="FluentAssertions" version="4.12.0" targetFramework="net452" />
<package id="MediatR" version="2.1.0" targetFramework="net452" />
<package id="Moq" version="4.5.16" targetFramework="net452" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net461" />
<package id="xunit" version="2.1.0" targetFramework="net452" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="net452" />
<package id="xunit.assert" version="2.1.0" targetFramework="net452" />
<package id="xunit.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net452" />
<package id="xunit.runner.console" version="2.1.0" targetFramework="net452" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net452" />

一切正常,但现在更新后我看不到测试.有什么建议吗?

everything was working fine but now after the update I cannot see the tests. Any advice?

更新:重新安装VS.没有改变.但是我注意到测试控制台说 Microsoft.VisualStudio.TestWindow.UI.TestWindowToolWindowControl 中发生了异常

UPDATE: re-installed VS. Nothing changed. But I noticed that the Test console says that an exception occurred in Microsoft.VisualStudio.TestWindow.UI.TestWindowToolWindowControl

推荐答案

此问题已在新更新中修复.

This fixed in new update.

https://msdn.microsoft.com/en-us/library/mt752379.aspx

如果使用的不是英文版 VS 2015 Update 3,也可以帮忙把语言改成英文.

If use not English version VS 2015 Update 3, also can help change language to English.

这篇关于使用 xUnit 的 VS2015 CE Update 3 中的测试资源管理器为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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