1
我已將VS 2013環境設置爲與Visual Studio Online中的TFS集成。我已經配置了一個CI構建來運行,然後在完成後運行我所有的測試(nUnit框架)。然而,當測試完成並且我看到輸出時,它只會說明每個測試是通過還是失敗,而不是我在代碼中調用的assert語句的詳細信息,即實際發生的錯誤。在Visual Studio Online中獲取完整的nUnit輸出
所以它會說
GetPosMenus失敗
但是,如果我在VS2013本地運行的測試中,我看到完整的錯誤
GetPosMenus failed
Initialization method Data.Test.PosMenuDataRepositoryTests.LoadData threw exception. System.ArgumentOutOfRangeException: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index.
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Testing.Shared.DataPopulation.Pos.PosMenuDataPopulator.LoadPosMenusIntoDatabase(IUnitOfWork work, IList`1 data, IList`1 venues) in PosMenuDataPopulator.cs: line 48
at5 Data.Test.PosMenuDataRepositoryTests.LoadData() in PosMenuDataRepositoryTests.cs: line 50
我如何配置網絡構建引擎來給我完整的輸出?
謝謝,我可以看到它在VS,沒有任何節點在網上VS擴大,但與IDE生病管理現在。在VS中,雖然它只表示「顯示1048個失敗中的10個」,我只能看10個測試的錯誤消息,其他的它不顯示。這是可配置的地方嗎? – NZJames
沒關係,只是在總覽面板中。如果你點擊構建鏈接,它會下載完整的結果。謝謝! – NZJames