【问题标题】:No test report files were found in Hudson with NUnit使用 NUnit 在 Hudson 中未找到测试报告文件
【发布时间】:2011-10-28 17:02:58
【问题描述】:

我可以使用批处理命令在Hudson 中成功运行NUnit,它会在NUnit 安装目录中生成TestResult.xml。但是Hudson 生成的错误是

No NUnit test report files were found. Configuration error?

在为Publish NUnit test result report 下的xml 文件提供正确路径之后。 xml 文件应该在项目的工作区中还是有任何其他配置可以使其工作???

我提到了Problem Publishing NUnit Testing Result Reports with Hudson 也是,但没有找到答案。

【问题讨论】:

    标签: unit-testing nunit hudson


    【解决方案1】:

    我发现使用双引号不起作用。

    例子:

    测试报告 XMLs = nunit-result.xml(有效!) 测试报告 XMLs = "nunit-result.xml"(不工作)

    这是你的问题的可能性很小......

    【讨论】:

      【解决方案2】:

      在尝试以不同方式解决上述问题后,我可以通过将TestResult.xml 文件放在Hudson s jobs 文件夹中的项目的工作区文件夹中并在@987654325 下仅提供TestResult.xml 来解决它@ 而不是给出 xml 文件的绝对路径。

      希望这可以帮助某人...

      【讨论】:

      • 是的,您应该能够使用相对于工作空间根目录的路径。例如,project/tests/TestResult.xml,或者如果你有多个结果,project/tests/*.xml。注意没有前导 /
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-06
      • 1970-01-01
      相关资源
      最近更新 更多