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?
Asked
Active
Viewed 1.2k times
2 Answers
9
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:
- Install LCOV on the build server, add a build step that executes it and archive the artifacts.
- Add an LCOV installation into your repository and add a similar build step.
If you're after a code coverage tool, the Cobertura plugin might be what you're looking for.

Anders Lindahl
- 41,582
- 9
- 89
- 93
-
I used the [gcovr](https://software.sandia.gov/trac/fast/wiki/gcovr) to create the xml that Cobertura plugin was looking for... – sdmythos_gr Jan 02 '12 at 16:42
-
2having a lot of issues with gcovr. Its seems to want to do its own thing not what i want – Stephen May 27 '14 at 15:18
-
2Another option is the [lcov_cobertura](https://github.com/eriwen/lcov-to-cobertura-xml) script to turn LCOV results into Cobertura-compatible XML for Jenkins' Cobertura plugin. – Josh Kelley Feb 10 '16 at 20:51
6
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.

Ryan Phillips
- 61
- 1
-
Could Cobertura work with Objective-C programs- specifically, iOS apps? – Apophenia Overload Apr 06 '11 at 18:23