c++ - 如何在jenkins中发布测试结果报告?

标签 c++ jenkins googletest

我想通过xunit插件发布通过jenkins中的google cpp测试工具生成的xml格式的测试报告。在配置插件时,我们必须指定模式。任何人都可以帮助在这个模式中写什么,因为如果我配置任何它会给出这个错误

**

[xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern 'C:\Users\20040922\.jenkins\workspace\firstreport.xml' relative to 'C:\Users\20040922\.jenkins\jobs\jessy\workspace' for the testing framework 'JUnit'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'JUnit'?
[xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the resolved pattern 'C:\Users\20040922\.jenkins\workspace\firstreport.xml'. Configuration error?.
[xUnit] [INFO] - Setting the build status to FAILURE
[xUnit] [INFO] - Stopping recording.
Build step 'Publish xUnit test result report' changed build result to FAILURE
Finished: FAILURE

**

最佳答案

为了配置非java工具,我们必须使用xunit插件。在模式中我们可以指定**/*.xml,它将在当前作业的工作区文件夹中搜索文件。

关于c++ - 如何在jenkins中发布测试结果报告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16008398/

相关文章:

c++ - 为 Google 测试夹具指定构造函数参数

c++ - 无法使用 Visual C++ 2012 创建有效的 dll

Jenkins 配置作为代码插件与 Pipeline

node.js - 如何解决错误: spawn EACCES on Jenkins when running Karma?

c++ - CPack:从子目录(googletest 目录)中排除安装命令

c++ - 如何在 C 代码上从终端运行 Google 测试?

c++ - 错误: no match for call to ‘(std::fstream {aka std::basic_fstream<char>}) (const char*)’ Not fixed by c_str()

c++ - QWizard::setField:无法写入属性

c++ - 如何减小 MinGW g++ 编译器生成的可执行文件的大小?

Jenkins 全局环境变量与节点系统变量?