Pat*_*ckV 2 mstest visual-studio-2010 visual-studio-2013
我的所有单元测试都在Visual Studio 2013中突然消失,我似乎无法在测试资源管理器中发现它们.
我们使用visual studio 2010作为我们的主要环境.我安装了Visual Studio 2013 Express Desktop作为我的首选编辑器,在其中工作,然后在2010年进行最终构建/登记.2010年一切正常.但2013年快递将不再发现测试.它曾经,然后在工作中间停止了变化.这些是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) ==========
Run Code Online (Sandbox Code Playgroud)
尝试修复的步骤:
任何建议,将不胜感激.我的下一步是擦除系统,但这将是痛苦的.
你在使用nUnit吗?我刚刚有类似的情况转移到新的电脑,导致所有现有的测试消失.
转到工具 - >扩展和更新 - >左侧选择在线 - >在右上角的'nunit test adapter'搜索框中输入并安装它.
重新启动Visual Studio.
一次重建后再次出现测试.
| 归档时间: |
|
| 查看次数: |
2653 次 |
| 最近记录: |