Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding lcov to 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?

like image 490
Apophenia Overload Avatar asked Mar 30 '11 18:03

Apophenia Overload


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 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.

like image 147
Anders Lindahl Avatar answered Sep 27 '22 22:09

Anders Lindahl


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.

like image 32
Ryan Phillips Avatar answered Sep 27 '22 22:09

Ryan Phillips