我試圖在將代碼部署到網站後,在Visual Studio Team System(VSTS)中運行我的驗收測試。部署工作已經有幾個月了。測試步驟與以下消息失敗:VSTS部署後運行測試
這裏是日誌:
##[section]Starting: Test Assemblies **\*acceptance.tests.dll;-:**\obj\**
==============================================================================
Task : Visual Studio Test
Description : Run tests with Visual Studio test runner
Version : 2.0.24
Author : Microsoft Corporation
Help : [More Information] (https://go.microsoft.com/fwlink/?LinkId=835764)
==============================================================================
!**\obj\**
[command]"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "d:\a\r1\a\Build website\drop\HepC.Web.Acceptance.Tests.dll" /logger:trx
Microsoft(R) Test Execution Command Line Tool Version 14.0.25420.1
Copyright(c) Microsoft Corporation.All rights reserved.
Starting test execution, please wait...
Warning: No test is available in d:\a\r1\a\Build website\dropdll.Make sure that installed test discoverers & executors, platform & framework versionnd try again.
Information: Additionally, you can try specifying '/UseVsixExtensions' command if the is installed on the machine as vsix extensions and your installation supports vsix .console.exe myTests.dll /UseVsixExtensions:true
##[warning]No results found to publish.
##[section]Finishing: Test Assemblies **\*acceptance.tests.dll;-:**\obj\**
我使用NUnit 3但是NUnit的適配器沒有被打包作爲部署的一部分,所以它不能看見。解決這個問題的最好方法是什麼?將NUnit3TestAdapter作爲主要網站的一部分包裝起來似乎有點奇怪,因此我可以在部署後運行一些測試。
我被告知我不需要在構建過程中這樣做,因爲VSTS會自動搜索包恢復位置。事實上,我爲我的單元測試做這件事。我特別試圖運行我需要首先部署解決方案的驗收測試。我會嘗試你的第二個建議。 – johnstaveley
@johnstaveley我有這個相同的問題,你有沒有解決? –
是的,他們工作了一段時間,然後再次停止。太忙,現在修復:( – johnstaveley