The scripts in this directory are used to get Python and C++ code coverage of IMP (and some dependencies bundled with IMP, such as RMF). Prerequisites: - Python 'coverage' module http://nedbatchelder.com/code/modules/coverage.html - lcov http://ltp.sourceforge.net/coverage/lcov.php To use, assuming IMP is checked out in : 1. Set up build directory in % mkdir && cd 2. Configure and build IMP in debug mode with gcc coverage flags: % cmake -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage" && make 3. Set up for coverage collection % /tools/coverage/setup.py 4. Run tests % PYTHONPATH=`pwd`/coverage ctest 5. Gather together all coverage information % /tools/coverage/gather.py 6. Generate HTML reports (run report.py -h to see other options) % /tools/coverage/report.py