Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/151.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何在jenkins中发布测试结果报告?_C++_Jenkins_Googletest - Fatal编程技术网

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

C++ 如何在jenkins中发布测试结果报告?,c++,jenkins,googletest,C++,Jenkins,Googletest,我想通过xunit插件发布测试报告,它是通过jenkins中的GoogleCPP测试工具生成的xml格式。在配置插件时,我们必须指定模式。任何人都可以帮助我在这个模式中写些什么,因为如果我配置了任何插件,它会给出这个错误 ** **为了配置非java工具,我们必须使用xunit插件。在模式中,我们可以指定**/*.xml,它将在当前作业的工作区文件夹中搜索文件 我正在使用google测试和JUnit测试结果报告 要发布其报告,需要更新已发布的*.xml文件的修改日期。下面的代码是我如何做到的,它

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

**


**

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

我正在使用google测试和JUnit测试结果报告

要发布其报告,需要更新已发布的*.xml文件的修改日期。下面的代码是我如何做到的,它在Windows Server上工作

    GOOGLE_TEST.exe --gtest_output=xml 
    copy /b test_detail.xml+,,

在Linux或Mac中,您可能需要执行
touch test\u detail.xml
而不是
copy/b test\u detail.xml
(我没有尝试过这个)

您自己尝试过什么吗?目前,这看起来像是一个“为我做”的问题,不符合Stackoverflow的问题guidelines@Bojangles如果我没有尝试过,那么我是如何知道我上面提到的错误的?请仔细检查问题,然后发表评论。请参阅
    GOOGLE_TEST.exe --gtest_output=xml 
    copy /b test_detail.xml+,,