You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@madlib.apache.org by "Ed Espino (JIRA)" <ji...@apache.org> on 2017/07/15 06:06:00 UTC
[jira] [Created] (MADLIB-1138) Add basic code coverage support
Ed Espino created MADLIB-1138:
---------------------------------
Summary: 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)