[vtk-developers] Coverage Script
Bill Lorensen
bill.lorensen at gmail.com
Tue Sep 11 16:39:49 EDT 2012
Andrew,
To compute the coverage for your unit tests, (assuming a linux build),
0) Use Linux
- install lcov
- use the gcc compiler
1) Add the CMake flags:
CMAKE_CXX_FLAGS:STRING=-g -O0 -fprofile-arcs -ftest-coverage
CMAKE_C_FLAGS:STRING= -g -O0 -fprofile-arcs -ftest-coverage
2) Compile VTK for Debug
CMAKE_BUILD_TYPE Debug
../VTK/Utilities/Maintenance/computeCodeCoverageLocallyForOneTest.sh
Common/Color -R CommonColor
I'll be adding a wiki page soon to document this process.
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120911/f27d0ee8/attachment.html>
More information about the vtk-developers
mailing list