[ 
https://issues.apache.org/jira/browse/MESOS-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14069254#comment-14069254
 ] 

Dominic Hamon commented on MESOS-987:
-------------------------------------

An alternative to adding it to the configure script:

{noformat}
$ CXXFLAGS="-pg --coverage" LDFLAGS=-lgcov ./configure
$ make check GTEST_FILTER=''
$ cd build/src && ./mesos-tests
$ find -name \*.gcno | xargs gcov
...
Lines executed:64.46% of 68888
$
{noformat}

> Wire up a code coverage tool
> ----------------------------
>
>                 Key: MESOS-987
>                 URL: https://issues.apache.org/jira/browse/MESOS-987
>             Project: Mesos
>          Issue Type: Improvement
>          Components: technical debt
>            Reporter: Vinod Kone
>            Assignee: Dominic Hamon
>
> Some options are gcov (works only with gcc afaict) and optionally lcov.
> It would be nice to hook this up with Jenkins too.
> http://meekrosoft.wordpress.com/2010/06/02/continuous-code-coverage-with-gcc-googletest-and-hudson/



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to