Can you recommend a jenkins-friendly C++ code coverage tool?

4,075 views
Skip to first unread message

Chris Withers

unread,
Mar 27, 2012, 3:40:49 AM3/27/12
to jenkins...@googlegroups.com
Hi All,

Which C++ code coverage tool would you guys recommend to get a good
understanding of how much code is being covered by a Boost-based test of
unit tests and which works well with Jenkins?

Commercial tools are fine, provided they're good enough to justify their
cost :-)

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

Zoltan Gyarmati

unread,
Mar 27, 2012, 3:48:44 AM3/27/12
to jenkins...@googlegroups.com
Hi Chris,

well, it depends on your compiler, but you might want to check out gcov,
with the gcovr script and the Cobertura plugin. see for example here:

http://www.semipol.de/archives/320

Chris Withers

unread,
Mar 27, 2012, 3:54:04 AM3/27/12
to jenkins...@googlegroups.com, Zoltan Gyarmati
On 27/03/2012 08:48, Zoltan Gyarmati wrote:
> well, it depends on your compiler,

We use GCC.

> but you might want to check out gcov,
> with the gcovr script and the Cobertura plugin. see for example here:
>
> http://www.semipol.de/archives/320

Cool, looks interesting, what others do people recommend?

Jan Seidel

unread,
Mar 27, 2012, 4:26:54 AM3/27/12
to Jenkins Users
Hi Chris,

we will soon go for Sonar
http://www.sonarsource.org/features/ not sure if that fits your
expectation. I'm even not sure if it fits ours XD
But it seems to be very powerful and versatile not to mention that the
sonar server, that runs separately can be connected to jenkins via a
jenkins plugin

Take care
Jan

Mark Waite

unread,
Mar 27, 2012, 1:03:23 PM3/27/12
to jenkins...@googlegroups.com
I configured gcc with lcov output to HTML and used a plugin that let me link to the lcov HTML output.  It was fast and easy to configure and has worked well enough for my needs.

Mark Waite


From: Chris Withers <ch...@simplistix.co.uk>
To: jenkins...@googlegroups.com
Sent: Tuesday, March 27, 2012 2:40 AM
Subject: Can you recommend a jenkins-friendly C++ code coverage tool?

Chris Withers

unread,
Mar 28, 2012, 3:56:12 AM3/28/12
to jenkins...@googlegroups.com, Mark Waite
On 27/03/2012 18:03, Mark Waite wrote:
> I configured gcc with lcov output to HTML and used a plugin that let me
> link to the lcov HTML output. It was fast and easy to configure and has
> worked well enough for my needs.

Interesting, what stopped you getting it to work with the Cobertura plugin?

Also, has anyone had any success intergrating purecov with Jenkins?

Johannes Wienke

unread,
Mar 28, 2012, 3:58:29 AM3/28/12
to jenkins...@googlegroups.com, Chris Withers, Mark Waite
Am 28.03.2012 09:56 schrieb Chris Withers:
> On 27/03/2012 18:03, Mark Waite wrote:
>> I configured gcc with lcov output to HTML and used a plugin that let me
>> link to the lcov HTML output. It was fast and easy to configure and has
>> worked well enough for my needs.
>
> Interesting, what stopped you getting it to work with the Cobertura plugin?

Maybe I can also present this solution if you use CMake:

http://www.semipol.de/archives/320

Cheers,
Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages