繁体   English   中英

Jenkins 错误:未找到测试报告文件。 配置错误?

[英]Jenkins Error: No test report files were found. Configuration error?

我不明白为什么我有这个错误。 我已经在 windows 上通过 jenkins 安装了 ant。

我的项目称为test-freestyle并保存在:C:\\Program Files (x86)\\Jenkins\\workspace\\test-freestyle

我在 test-freestyle 文件夹中手动创建了一个空的Reports文件夹,并尝试按照本教程此 StackOverflow 帖子进行故障排除

这是文件夹结构,证明 jenkins 看到目录构建失败图像构建失败图像 是因为 Program Files 需要管理员权限才能创建文件吗?

我的代码在 JUnitTest1 项目中。 我的测试用例在JUnitTest1UnitTests

build-project:
    [echo] JUnitTest1: C:\Users\----\Documents\workspace\JUnitTest1\build.xml

init:

build-project:
    [echo] JUnitTest1UnitTests: C:\Users\-----\Documents\workspace\JUnitTest1UnitTests\build.xml

build:

 BUILD SUCCESSFUL
 Total time: 0 seconds
 Recording test results
 ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
 Finished: FAILURE

转到您的工作然后单击配置,然后打开高级选项并查找“使用自定义工作区”将其设置为您的需要并调整构建后操作以使用相对于您的“新”工作区路径的文件夹

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM