2016-04-27 85 views
1

我正在開發測試框架使用.net + selenium與Nunit 2.6.4亞軍。竹nunit亞軍未發現測試

我配置竹子以這種方式運行測試:

  1. 從庫中檢出
  2. 參數多態測試
  3. 的NuGet恢復
  4. 的MSBuild與選項/ P:配置=調試
  5. NUnit的亞軍

在nunit test runner tas k即時通訊使用Nunit 2.6.4版本。

對於傳遞的路徑, 「NUnit測試文件」 IM:\ SeleniumProject.Shop \ SeleniumProject.Shop \ BIN \調試\ SeleniumProject.Shop.dll

我敢肯定,這個文件在此存在路徑,因爲我檢查了使用腳本任務打印。\ SeleniumProject.Shop \ SeleniumProject.Shop \ bin \ debug \中的文件列表,以確保我有SeleniumProject.Shop.dl那裏。

但在5日的任務即時得到一個錯誤:

Parsing test results under C:\buildAgent\xml-data\build-dir\SHOP-WEB-JOB1...

Failing task since test cases were expected but none were found. Finished task

'FronPageLinks' with result: Failed

我敢肯定,測試可以在SeleniumProject.Shop.dll發現,becouse我使用nunit.exe

手動檢查了當地mashine

有沒有人有一些想法,爲什麼會發生? 另一個有趣認爲竹子找到測試兩次(像30嘗試)和檢驗執行

回答

0

您必須設置「結果文件名」屬性與XML(link

的路徑編輯

您還必須添加一個NUnit解析器任務,然後設置生成的XML(link)的路徑。