<p>The test coverage is not complete though the basic framework is ready.</p>

<p>Completed things are - </p>

<ul>
<li>Using gcov and lcov to calculate test coverage</li>
<li>Added cmake option BUILD_WITH_COVERAGE to build mlpack with appropriate GCC flags</li>
<li>Added cmake target mlpack_coverage to generate coverage with all tests</li>
<li>bash script 'mlpack_coverage' will be generated in build folder which takes test suite as parameter('-t') for generate coverage for specific test</li>
<li>Coverage result will be available in build/coverage/index.html</li>
</ul>

<p>TODO list:<br>
1) Coverage results get accumulated with every run. We need to make sure the previous result gets deleted for every run. <br>
2) Where to show these results? and how to upload it automatically?<br>
3) Some hacks are needed for templated functions and classes.</p>

<p>Opening this pull request for discussion. </p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/mlpack/mlpack/pull/705'>https://github.com/mlpack/mlpack/pull/705</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Adding test coverage</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/mlpack/mlpack/pull/705/files#diff-0">CMake/mlpack_coverage.in</a>
    (64)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/705/files#diff-1">CMakeLists.txt</a>
    (29)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/mlpack/mlpack/pull/705.patch'>https://github.com/mlpack/mlpack/pull/705.patch</a></li>
  <li><a href='https://github.com/mlpack/mlpack/pull/705.diff'>https://github.com/mlpack/mlpack/pull/705.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/705">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFI3WkMPVrJQ9IO-cRPLIGqv9Phnwks5qO6bUgaJpZM4I9njx">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBVBk8wqluocqyB_rKJlGobGWdfmks5qO6bUgaJpZM4I9njx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/705"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>