简体   繁体   English

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

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

I can't figure out why I have this error.我不明白为什么我有这个错误。 I've installed ant via jenkins on windows.我已经在 windows 上通过 jenkins 安装了 ant。

My project is called test-freestyle and is held at: C:\\Program Files (x86)\\Jenkins\\workspace\\test-freestyle我的项目称为test-freestyle并保存在:C:\\Program Files (x86)\\Jenkins\\workspace\\test-freestyle

I've manually created an empty Reports folder inside that test-freestyle folder and am trying to followthis tutorial and this StackOverflow post to troubleshoot .我在 test-freestyle 文件夹中手动创建了一个空的Reports文件夹,并尝试按照本教程此 StackOverflow 帖子进行故障排除

Here is the folder structure, proof that jenkins sees the directory build failure image这是文件夹结构,证明 jenkins 看到目录构建失败图像构建失败图像 Is it becasue Program Files needs admin rights to create files?是因为 Program Files 需要管理员权限才能创建文件吗?

My code is in the JUnitTest1 project.我的代码在 JUnitTest1 项目中。 My test cases are in JUnitTest1UnitTests我的测试用例在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.

相关问题 Jenkins 中的 Jmeter 测试因“errorlevel=255”错误而失败 - Jmeter test in Jenkins fails with “errorlevel=255” error 错误:未找到 Python 模块 tensorflow。 Rstudio,Windows10 - 路径问题 - Error: Python module tensorflow was not found. Rstudio, Windows10 - PATH problem ***错误:找不到符号文件。 默认为ntkrnlmp.exe导出符号 - *** ERROR: Symbol file could not be found. Defaulted to export symbols for ntkrnlmp.exe 未找到 opencv_world420.dll。 重新安装程序可能会修复此错误 - opencv_world420.dll not found. Reinstalling the program may fix this error 错误配置过程项目文件可能无效 - Error in configuration process project files may be invalid OleDbException (0x80004005):未找到 Oracle 客户端和网络组件。 我怎样才能解决这个问题? - OleDbException (0x80004005): Oracle client and networking components were not found. How can I fix this? SignTool 错误:未找到符合所有给定条件的证书。 VS2019 - SignTool error : No certificates were found that met all the given criteria. vs2019 Ruby gem'ruby oci8'返回错误:'OCI.DLL:126(无法找到指定的模块。)(LoadError)' - Ruby gem 'ruby oci8' returning Error: 'OCI.DLL: 126(The specified module could not be found. ) (LoadError)' Jenkins构建失败没有错误 - Jenkins build fails no error 詹金斯生成文件错误 - Jenkins makefile error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM