On Tue, Jan 3, 2012 at 9:52 AM, David Cole <david.c...@kitware.com> wrote:
> 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.) > When I run 'make help' from that example project's build dir I just see doriad@david-lab:~/build/Examples/CTest/Coverage$ make help The following are some of the valid targets for this Makefile: ... all (the default if no target is provided) ... clean ... depend ... Coverage ... edit_cache ... rebuild_cache ... test ... coverage.o ... coverage.i ... coverage.s 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? 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: http://www.cmake.org/Wiki/CTest/Coverage/Example David
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake