Skip to content

Commit

Permalink
use isolated test
Browse files Browse the repository at this point in the history
Signed-off-by: kminoda <[email protected]>
  • Loading branch information
kminoda committed Jun 24, 2024
1 parent 66d5062 commit 1305a2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions perception/simple_object_merger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ rclcpp_components_register_node(simple_object_merger_node_component

# Tests
if(BUILD_TESTING)
ament_auto_add_gtest(simple_object_merger_tests
test/test_simple_object_merger_node.cpp
file(GLOB_RECURSE test_files test/*.cpp)

ament_add_ros_isolated_gtest(test_simple_object_merger_node ${test_files})

target_link_libraries(test_simple_object_merger_node
simple_object_merger_node_component
)
endif()

Expand Down
1 change: 1 addition & 0 deletions perception/simple_object_merger/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<buildtool_depend>ament_cmake_auto</buildtool_depend>

<depend>ament_cmake_ros</depend>
<depend>autoware_perception_msgs</depend>
<depend>autoware_test_utils</depend>
<depend>autoware_universe_utils</depend>
Expand Down

0 comments on commit 1305a2e

Please sign in to comment.