diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 104c75df..da68dbc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,6 @@ jobs: - name: Build code run: cmake --build build --parallel - name: Test code - run: ctest --test-dir build -V + run: ctest --test-dir build -V --build-config Debug - name: collect code coverage run: bash <(curl -s https://codecov.io/bash) || echo "codecov failure" diff --git a/cmake/testing.cmake b/cmake/testing.cmake index e6297e9a..932648a0 100644 --- a/cmake/testing.cmake +++ b/cmake/testing.cmake @@ -11,7 +11,7 @@ if (ENABLE_UNIT_TESTS) add_library(googletest INTERFACE IMPORTED) target_link_libraries(googletest INTERFACE gtest_main) - if(ENABLE_TEST_COVERAGE) + if(ENABLE_COVERAGE) target_compile_options(googletest INTERFACE -O0 -g -fprofile-arcs -ftest-coverage) target_link_options(googletest INTERFACE -fprofile-arcs -ftest-coverage) endif()