Adding lcov to Hudson

quite new to hudson here. I was wondering how to integrate lcov with it? How to set tarball to work of Hudson?

+6
hudson code-coverage gcov lcov
source share
2 answers

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 runs it and archives the artifacts.
  • Add the LCOV installation to your repository and add a similar build step.

If you use a code coverage tool, perhaps the Cobertura plugin might be what you are looking for.

+9
source share

I prefer the Cobertura plugin for lcov because it presents the results directly in each assembly report and does not copy the entire source code for each assembly. The information they present is very similar.

Unfortunately, it does not 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 for each assembly, since both of them use the same input from gcc.

+4
source share

All Articles