<p>Thanks for this</p>
<p>Andrew</p>
<p>Sent from an Android tablet.</p>
<div class="gmail_quote">On Sep 12, 2012 6:39 AM, "Bill Lorensen" <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andrew,<br><br>To compute the coverage for your unit tests, (assuming a linux build),<br> 0) Use Linux<br> - install lcov<br> - use the gcc compiler<br> <br> 1) Add the CMake flags: <br> <br> CMAKE_CXX_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage <br>
CMAKE_C_FLAGS:STRING= -g -O0 -fprofile-arcs -ftest-coverage <br> <br> 2) Compile VTK for Debug <br> <br> CMAKE_BUILD_TYPE Debug <br><br>../VTK/Utilities/Maintenance/computeCodeCoverageLocallyForOneTest.sh Common/Color -R CommonColor<br>
<br>I'll be adding a wiki page soon to document this process.<br><br>Bill<br>
</blockquote></div>