Not directly... Not with existing ctest. But after the ctest_coverage call, there should be a file in your binary tree called something like "Testing/20120109-0100/Coverage.xml" -- it is the xml file that will be submitted to CDash reporting what files have what percent coverage. Near the bottom of that file, there will be a line like
"<PercentCoverage>74.83</PercentCoverage>" representing the total overall coverage value. You could extract that number from there if you want to trigger some action based on its value. On the other hand, you can (as a project admin) define what percentage coverage constitutes "failed coverage" for a project on the CDash dashboard. Then, when the coverage is below that threshold, it will show up as yellow to indicate "failed coverage result". HTH, David On Mon, Jan 9, 2012 at 9:30 AM, Tom Deblauwe <[email protected]> wrote: > Hello list, > > Is there a way when doing a coverage build and test run(with bullseye) to > make the build fail when the total coverage percentage is below a certain > treshold? for example getting the resulting percentage in your ctest script > after the "ctest_coverage()" call. > > Best regards > Tom, > -- > > 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 -- 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
