竹nunit亚军未发现测试

问题描述:

我正在开发测试框架使用.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尝试)和检验执行

您必须设置“结果文件名”属性与XML(link

的路径编辑

您还必须添加一个NUnit解析器任务,然后设置生成的XML(link)的路径。