1
我不確定問題是出現在NUnit還是SpecFlow中,但是每當我將「運行功能測試」任務添加到我的構建中時,在TFS2017中運行構建時出現以下錯誤。 ..在TFS2017中運行NUnit/SpecFlow測試
2017-05-06T00:11:00.4676774Z ##[warning]DistributedTests: Test discovery started.
2017-05-06T00:11:00.4676774Z ##[warning]DistributedTests: Test Run Discovery Aborted . Test run id : 5
2017-05-06T00:11:00.4676774Z ##[warning]DistributedTests: UnExpected error occured during test execution. Try again.
2017-05-06T00:11:00.4676774Z ##[warning]DistributedTests: Error : NUnit Adapter 3.7.0.0: Test discovery complete
2017-05-06T00:11:00.4676774Z
2017-05-06T00:11:00.4676774Z ##[warning]DistributedTests: Test run aborted. Test run id: 5
2017-05-06T00:11:00.4676774Z ##[error]System.Exception: The test run was aborted, failing the task.
2017-05-06T00:11:00.5175379Z ##[error]PowerShell script completed with 1 errors.
有沒有人知道問題是什麼?
非常感謝,
測試可以在本地運行成功嗎?你正在使用哪個版本的VS和VS測試代理? –
不太清楚是什麼問題,但切換到MSTest似乎可以解決問題 – Konzy262
如果您使用speckflow,則需要確保使用MS Test來實現。您只需要使用與您爲SpecFlow使用的提供程序的單元測試相同的適配器。更多細節請看下面我的回覆。 –