我不知道为什么会有这个错误。我已经通过jenkins在Windows上安装了ant。
我的项目称为自由测试风格,位于:C:\Program Files(x86)\Jenkins\workspace\test-freestyle
我已经在该test-freestyle文件夹中手动创建了一个空的 Reports 文件夹,并尝试遵循this tutorial和this StackOverflow post to troubleshoot。
这是文件夹结构,证明 Jenkins 可以看到目录build failure image
是否因为程序文件需要管理员权限才能创建文件?
我的代码在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
最佳答案
转到您的工作,然后单击“配置”,然后打开“高级”选项,然后查找“使用自定义工作区”,将其设置为您的需要,并调整后构建操作以使用相对于"new"工作区路径的文件夹亲戚
关于windows - Jenkins错误: No test report files were found.配置错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40060527/