我想通过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/