如何导入谷歌测试xml结果到VSTS
How to import Google Tests xml results to VSTS
我们在基于c++的解决方案中使用Google Test (gtest)进行测试。我们在VSTS中构建它,以便在Windows上运行。当我们运行test .exe时,它产生test_detail.xml文件,包含测试运行的结果:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="1152" failures="0" disabled="0" errors="0" time="8.57" name="AllTests">
<testsuite name="testTrim" tests="10" failures="0" disabled="0" errors="0" time="0.041">
<testcase name="trimEmptyString" status="run" time="0" classname="testTrim" />
...
如何将此文件导入VSTS?
如果gtest被识别并显示在构建摘要页面上,即使它只是通过失败,没有错误的细节,这将是理想的。
原来test_detail.xml (gtest生成的报告)的格式是JUnit,所以很容易导入到VSTS中,如下所示:https://www.visualstudio.com/en-us/docs/test/continuous-testing/getting-started/continuous-test-java
相关文章:
- 使用C++库在Android项目中修改gradle中的cmake参数,用于插入指令的测试
- Cppcheck生成xml转储文件
- 无法编译 rtmidi 测试 cmidiin.cpp 文件, 非法指令
- 尽管测试成功,CppUnit测试核心仍被丢弃.为什么
- 数据成员SFINAE的C++17测试:gcc vs clang
- 如何使用重载的相等(==)运算符向测试用例添加描述
- 为什么二进制搜索在我的测试中不起作用
- 从父数组测试用例构造二叉树失败
- 试图对缓存进行跨步测试,但程序并没有结束
- 有什么好的方法可以让系统调用代理允许在单元测试中进行模拟
- OpenGL在启用深度测试时不会丢弃我的碎片
- 为测试目标创建具有不同源文件夹的文件
- 在子目录中使用target_sources()命令时用于单元测试(qtest)的项目结构
- VC++本机单元测试,找不到调试符号
- 如何在pugixml中获取节点的内部XML
- Trac不会解析谷歌测试XML输出文件
- 如何防止eclipsec/c++单元测试遇到导致runner挂起的XML解析错误
- 使用XSD对xml生成器进行单元测试
- 提升测试"文件名".测试报告.xml未找到
- 如何导入谷歌测试xml结果到VSTS