Skip to content

Commit

Permalink
fix coverage flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeolson committed Nov 23, 2023
1 parent a2c545c commit 8211aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion cmake/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8211aaa

Please sign in to comment.