<div class="gmail_quote">On Tue, Jan 3, 2012 at 9:52 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>To actually run the coverage testing, you need to have tests added with add_test in your CMakeLists file, then you need to run a ctest -S script that calls ctest_coverage, or use one of the predefined coverage dashboard targets. (Use 'make help | grep Coverage' to see those.)</div>
</div></blockquote><br clear="all">When I run 'make help' from that example project's build dir I just see</div><div class="gmail_quote"><br><div class="gmail_quote">doriad@david-lab:~/build/Examples/CTest/Coverage$ make help</div>
<div class="gmail_quote">The following are some of the valid targets for this Makefile:</div><div class="gmail_quote">... all (the default if no target is provided)</div><div class="gmail_quote">... clean</div><div class="gmail_quote">
... depend</div><div class="gmail_quote">... Coverage</div><div class="gmail_quote">... edit_cache</div><div class="gmail_quote">... rebuild_cache</div><div class="gmail_quote">... test</div><div class="gmail_quote">... coverage.o</div>
<div class="gmail_quote">... coverage.i</div><div class="gmail_quote">... coverage.s</div><div><br></div><div>I also ran 'make help | grep Coverage' in the VTK build dir (because I'd assume the dashboard targets you're talking about would be in a big project like VTK) but there is no output. Are these dashboard targets project specific? That is, if I'm working on a project that does not have a dashboard server, how would you see the coverage report?</div>
<div><br></div><div>It'd be great if someone could add a simple example script that calls ctest_coverage to this example, along with the procedure to run it and inspect the result: <a href="http://www.cmake.org/Wiki/CTest/Coverage/Example">http://www.cmake.org/Wiki/CTest/Coverage/Example</a></div>
<div><br></div><div>David </div></div>