Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
add flags to behavior for code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gesel <paul.gesel@picknik.ai>
  • Loading branch information
pac48 committed Aug 2, 2024
1 parent ae05883 commit 8fce130
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/picknik_ur_site_config/behaviors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ ament_target_dependencies(trigger_pstop_reset_service

if(BUILD_TESTING)
add_subdirectory(test)
# Add coverage flags behavior
target_compile_options(trigger_pstop_reset_service PRIVATE -fprofile-arcs -ftest-coverage)
target_link_options(trigger_pstop_reset_service PRIVATE -fprofile-arcs -ftest-coverage)
endif()

# Install Libraries
Expand Down
4 changes: 0 additions & 4 deletions src/picknik_ur_site_config/behaviors/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ find_package(ament_cmake_gtest REQUIRED)

ament_auto_add_gtest(test_behavior_plugins test_behavior_plugins.cpp)
ament_target_dependencies(test_behavior_plugins ${THIS_PACKAGE_INCLUDE_DEPENDS})

# Add coverage flags
target_compile_options(test_behavior_plugins PRIVATE -fprofile-arcs -ftest-coverage)
target_link_options(test_behavior_plugins PRIVATE -fprofile-arcs -ftest-coverage)
1 change: 0 additions & 1 deletion src/picknik_ur_site_config/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<depend>moveit_studio_behavior_interface</depend>
<depend>picknik_ur_base_config</depend>
<depend>libgtest-dev</depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down

0 comments on commit 8fce130

Please sign in to comment.