Skip to content

Commit

Permalink
#EDITS: updates to linalg module and file seperation
Browse files Browse the repository at this point in the history
  • Loading branch information
akielaries committed Feb 16, 2024
1 parent 830de39 commit 417a620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
mkdir build && cd build
# run tests and populate lcov.info file
cmake -S ../ -DBUILD_TESTS=ON && make
cmake -S ../ -DBUILD_TESTS=ON -DBUILD_COV=ON && make
- name: Generate HTML Analysis & Unit Test Coverage
run: |
Expand Down
5 changes: 4 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,18 @@ message(STATUS "Detecting lcov")

# Find lcov
find_program(LCOV lcov)
option(BUILD_COV "Generate coverage reports" OFF)

if(LCOV)
if(BUILD_COV)
add_custom_command(TARGET RUN_CPP_TESTS POST_BUILD
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green "[==========]"
COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan --bold "[Generating Coverage Reports]"
COMMAND lcov --directory .. --capture --output-file lcov.info --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch,mismatch
COMMAND lcov --directory .. --capture --output-file lcov.info --rc geninfo_unexecuted_blocks=1 #--ignore-errors mismatch,mismatch
COMMAND lcov --remove lcov.info "*c++*" "*/googletest/*" "*/gtest*" "/usr/*" "/src" "/build" -o lcov.info --ignore-errors unused
COMMAND mv lcov.info ../../.coverage
)
endif()
else()
message(STATUS "lcov not found. Coverage reports will not be generated")
endif()
Expand Down

0 comments on commit 417a620

Please sign in to comment.