Skip to content

Commit

Permalink
bug: 在 osx 下无法正常执行 lcov
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Nov 8, 2023
1 parent 3627363 commit 5cee6d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ jobs:
run: |
cmake --preset=build
cmake --build build --target all
cmake --build build --target coverage
# @bug 在 osx 下无法正常执行 lcov
# cmake --build build --target coverage
12 changes: 6 additions & 6 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ add_subdirectory(unit_test)
add_subdirectory(system_test)

# @bug 在 osx 下无法正常执行 lcov
# add_coverage_target(
# DEPENDS unit_test
# SOURCE_DIR ${SimplePhysicsEngine_SOURCE_DIR}
# BINARY_DIR ${SimplePhysicsEngine_BINARY_DIR}
# EXCLUDE_DIR ${SimplePhysicsEngine_SOURCE_DIR}/3rd/*
# )
add_coverage_target(
DEPENDS unit_test
SOURCE_DIR ${SimplePhysicsEngine_SOURCE_DIR}
BINARY_DIR ${SimplePhysicsEngine_BINARY_DIR}
EXCLUDE_DIR ${SimplePhysicsEngine_SOURCE_DIR}/3rd/*
)

0 comments on commit 5cee6d2

Please sign in to comment.