How to use lcov test coverage tool with Hudson continuous integration?
-
28-09-2019 - |
Question
In my environment developers use lcov from command line when working with source code's module tests. I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of gathering test source code coverage.
Solution
If you are looking to publish the generated HTML reports along with your job/builds, have a look at the htmlpublisher plugin: http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin
This allows you to specify multiple html directories and index files to be made accessible from the job or build page.
OTHER TIPS
Have a look at the xUnit Plugin. I found the info in this thread. It has more information for using Hudson to build cpp projects.