[ https://issues.apache.org/jira/browse/MADLIB-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088486#comment-16088486 ]
ASF GitHub Bot commented on MADLIB-1138: ---------------------------------------- GitHub user edespino opened a pull request: https://github.com/apache/incubator-madlib/pull/151 MADLIB-1138. Add basic code coverage support: 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 You can merge this pull request into a Git repository by running: $ git pull https://github.com/edespino/incubator-madlib MADLIB-1138 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-madlib/pull/151.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #151 ---- commit 4d4e9e4f6973e9c9bcede7e233e3c4f5c4e90524 Author: Ed Espino <eesp...@pivotal.io> Date: 2017-07-15T06:06:08Z MADLIB-1138. Add basic code coverage support: 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 ---- > 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)