我的所有單元測試在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) ==========
步驟試圖修復:
- 從庫中檢出了源的全新副本
- 驗證其他開發商沒有這個問題(他們的2013安裝找到測試)
- 修復2013
- 刪除2013,重新啓動,在攤位2013
- 創建新的WPF項目和補充檢驗(即檢驗發現,但問題沒有解決)
任何建議,將不勝感激。我的下一步是擦拭系統,但這會很痛苦。
我創建了一個新的WPF項目並添加了一個單元測試。這個測試被發現了,但我的生產項目的問題仍然存在。 – PatrickV