Unit testing 在Hudson找不到带有NUnit的测试报告文件

Unit testing 在Hudson找不到带有NUnit的测试报告文件,unit-testing,nunit,hudson,Unit Testing,Nunit,Hudson,我可以使用批处理命令在Hudson中成功运行NUnit,并在NUnit安装目录中生成TestResult.xml。但是Hudson产生的错误 No NUnit test report files were found. Configuration error? 在Publish NUnit test result report下为xml文件指定正确路径后。xml文件是否应该在项目的工作区中,或者是否有任何其他配置来实现此功能 我提到了 也是,但没有找到答案。在尝试用不同的方法解决上述问题后,我

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

No NUnit test report files were found. Configuration error?
Publish NUnit test result report
下为xml文件指定正确路径后。xml文件是否应该在项目的工作区中,或者是否有任何其他配置来实现此功能

我提到了
也是,但没有找到答案。

在尝试用不同的方法解决上述问题后,我可以通过将
TestResult.xml
文件放在
Hudson
s
jobs
文件夹中的项目工作区文件夹中,并在
Publish NUnit test result report
下只给出
TestResult.xml
而不是给出xml文件的绝对路径来解决这个问题


希望这能帮助某人…

我发现使用双引号是行不通的

例如:

测试报告XMLs=nunit-result.xml(有效!) 测试报告XMLs=“nunit result.xml”(不起作用)


这很可能是您的问题…

是的,您应该能够使用相对于工作区根的路径。例如,project/tests/TestResult.xml,或者如果您有多个结果,则project/tests/*.xml。注意,没有前导/