使用 NUnit 在 Hudson 中找不到测试报告文件
我可以使用批处理命令在 Hudson
中成功运行 NUnit
,并在 NUnit
安装目录中生成 TestResult.xml
。 Hudson
会生成错误
No NUnit test report files were found. Configuration error?
但是,在发布 NUnit 测试结果报告
下为 xml 文件提供正确的路径后, 。 xml 文件是否应该位于项目的工作区中,或者是否有任何其他配置可以使其工作???
我提到了 使用 Hudson 发布 NUnit 测试结果报告的问题 也是,但没有找到答案。
I could successfully run NUnit
in Hudson
using batch command and it generates the TestResult.xml
in the NUnit
installation directory. But Hudson
generates the error that
No NUnit test report files were found. Configuration error?
after the correct path is given to the xml file under Publish NUnit test result report
. Should the xml file be in the project's workspace or is there any other configuration to make this work???
I referred to the Problem Publishing NUnit Testing Result Reports with Hudson
too but no answer was found.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在尝试以不同的方式解决上述问题后,我可以通过将
TestResult.xml
文件放在Hudson
的jobs 中项目的工作区文件夹中来解决它
文件夹,并在发布 NUnit 测试结果报告
下仅给出TestResult.xml
,而不是给出 xml 文件的绝对路径。希望这可以帮助某人...
After trying in different ways to solve the above problem, I could solve it by placing the
TestResult.xml
file in the workspace folder for the project inHudson
sjobs
folder and giving onlyTestResult.xml
underPublish NUnit test result report
instead of giving the absolute path to the xml file.Hope this may help someone...
我发现使用双引号不起作用。
示例:
测试报告 XML = nunit-result.xml(有效!)
测试报告 XML =“nunit-result.xml”(不起作用)
这是您的问题的可能性很小......
I found that using double quotes is not working.
Example:
Test report XMLs = nunit-result.xml (works!)
Test report XMLs = "nunit-result.xml" (do NOT work)
There is a SMALL chance that this is your problem...