diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index dec7f16..a657a2c 100755 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -30,24 +30,24 @@ add_om_test(microcore) add_om_test(bcstatus) add_om_test(txsearch) -#SETUP_TARGET_FOR_COVERAGE( - #NAME mysql_cov - #EXECUTABLE mysql_tests) - -#SETUP_TARGET_FOR_COVERAGE( - #NAME microcore_cov - #EXECUTABLE microcore_tests) - -#SETUP_TARGET_FOR_COVERAGE( - #NAME bcstatus_cov - #EXECUTABLE bcstatus_tests) - -#SETUP_TARGET_FOR_COVERAGE( - #NAME txsearch_cov - #EXECUTABLE txsearch_tests) - -#add_custom_target(cov - #COMMAND ; - #DEPENDS mysql_cov microcore_cov bcstatus_cov txsearch_cov - #COMMENT "Runs all coverage tests" -#) + +###################################### +########## CODE COVERAGE ############# +###################################### + +include(CodeCoverage) + +#APPEND_COVERAGE_COMPILER_FLAGS() + +set(COVERAGE_LCOV_EXCLUDES + '../ext/*' '*boost/*' '*c++/*' + '*/monero/*' '*googletest/*' '*googlemock/*' + '*restbed/*' '*/mysql++/*' '*tests/*') + + SETUP_TARGET_FOR_COVERAGE_LCOV( + NAME coverage + EXECUTABLE mysql_tests + microcore_tests + bcstatus + txsearch) +