将 lcov 添加到 Hudson
这里对哈德森来说相当陌生。我想知道如何将 lcov 与其集成?我如何将 tarball 安装到 Hudson 作业中?
rather new to Hudson here. I was wondering, how would one integrate lcov with it? How would I install the tarball into a Hudson job?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Jenkins(或 Hudson)可以运行任何可以从命令行运行的东西,作为构建过程的一部分。
如果您特别想要使用 LCOV,您可以:
如果您需要代码覆盖率工具,Cobertura 插件可能是你在寻找什么。
Jenkins (or Hudson) can run anything you can run from the command line as part of the build process.
If you specifically want to use LCOV, you can:
If you're after a code coverage tool, the Cobertura plugin might be what you're looking for.
与 lcov 相比,我更喜欢 Cobertura 插件,因为它直接在每个构建报告中呈现结果,并且不会复制每个构建的整个源代码。他们提供的信息非常相似。
不幸的是,它不直接支持 gcov,但有一个名为 gcovr 的 Python 脚本可以为 Jenkins 生成 Cobertura 兼容的输出。 本文解释了如何设置它。
您还可以在每个构建上运行这两个覆盖工具,因为它们都使用来自 gcc 的相同输入。
I prefer the Cobertura plugin to lcov because it presents the results directly in each build report and doesn't copy the entire source code for each build. The information they present is very similar.
Unfortunately, it doesn't support gcov directly, but there is a Python script called gcovr that produces Cobertura-compatible output for Jenkins. This article explains how to set it up.
You can also run both coverage tools on each build, since they both use the same input from gcc.