【发布时间】:2021-01-30 05:47:21
【问题描述】:
我的 C++ 项目使用 googletest 为 Jenkins 生成 JUnit 格式的 XML 结果。这适用于通过/失败结果和测试持续时间。
我的一些测试测量代码性能并断言这超过了某个阈值。我想将此扩展到绘制连续构建的性能数据图表。我在 XML 中使用 googletest RecordProperty 方法来 log additional information:
<testcase name="MyTest" status="run" time="3.964" classname="MyTestSuite" PerformanceData="131" />
如何配置 Jenkins 或其插件以在连续构建中绘制 PerformanceData(或等效记录)?
【问题讨论】:
标签: performance junit jenkins googletest