【发布时间】:2014-02-07 16:40:48
【问题描述】:
我的所有单元测试在 Visual Studio 2013 中突然消失了,我似乎无法在测试资源管理器中找到它们。
我们使用 Visual Studio 2010 作为我们的主要环境。我安装了 Visual Studio 2013 Express Desktop 作为我选择的编辑器,在其中工作,然后使用 2010 进行最终构建/签入。2010 年一切正常。但 2013 express 将不再发现测试。它曾经是,然后在进行更改的过程中它停止了。这些是 mstest 测试。
我得到以下测试输出:
------ Discover test started ------
TestTypes\13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b could not be loaded because the TIP could not be instantiated for the following reason(s): System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Microsoft.VisualStudio.TestTools.TestManagement.TipDelayLoader.LoadTip()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
========== Discover test finished: 0 found (0:00:00.1640164) ==========
尝试修复的步骤:
- 从存储库中签出新的源代码副本
- 验证其他开发者没有这个问题(他们的 2013 年安装找到测试)
- 修复 2013
- 删除 2013,重新启动,安装 2013
- 创建了新的 WPF 项目并添加了测试(发现了该测试,但问题未解决)
任何建议将不胜感激。我的下一步是擦除系统,但这会很痛苦。
【问题讨论】:
标签: visual-studio-2010 visual-studio-2013 mstest