[ https://issues.apache.org/jira/browse/MADLIB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093594#comment-16093594 ]
ASF GitHub Bot commented on MADLIB-1138: ---------------------------------------- Github user cooper-sloan commented on the issue: https://github.com/apache/incubator-madlib/pull/151 LGTM. Documentation [here](https://cwiki.apache.org/confluence/display/MADLIB/Code+Coverage+Guide) > Add basic code coverage support > ------------------------------- > > Key: MADLIB-1138 > URL: https://issues.apache.org/jira/browse/MADLIB-1138 > Project: Apache MADlib > Issue Type: Task > Components: Build System > Reporter: Ed Espino > > For developers, add cmake option configuration option ENABLE_COVERAGE which > will introduce gcov compilation and linking options (-fprofile-arcs > -ftest-coverage). Two supporting make targets are introduced: > * GenCoverageReport - Capture gcov counters and generate report > * ResetCoverageCounters - Zero counters gcov counters > Features: > * Counters will be captured in build/CodeCoverage.info file. System and Third > party metrics will be filtered out of coverage info file and stored in > CodeCoverage-filtered.info > * HTML report will be created in build/CodeCoverageReport directory > Usage: > * cmake -DENABLE_COVERAGE=ON .. > * <build, install and execute desired tests as usual> > * make GenCoverageReport > * <To view report, open build/CodeCoverageReport/index.html in browser> > * make ResetCoverageCounters > * <Run another test> > * make GenCoverageReport -- This message was sent by Atlassian JIRA (v6.4.14#64029)