Hi Bill,<div> This is really impressive, I just ran this on the vtkNamedColors class I am developing. </div><div>I reckon I will be able to get coverage up from 93% to closer to 100%.</div><div>I was looking at the tests and I couldn't see what two functions I had missed in the testing until I ran this!</div>
<div>Thank you once again for this, it is a really useful tool.</div><div>I reckon we should all be running it on the classes we have developed.</div><div><br></div><div>Regards</div><div>   Andrew</div><div><br><br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
To: Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>><br>Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Tue, 11 Sep 2012 16:39:49 -0400<br>
Subject: [vtk-developers] Coverage Script<br>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>
<br><br>---------- Forwarded message ----------<br>From: Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>><br>To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Wed, 12 Sep 2012 06:46:26 +1000<br>Subject: Re: [vtk-developers] Coverage Script<br><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" target="_blank">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>
<br><br></blockquote></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>
</div>