Skip to content

Commit a855a7d

Browse files
authored
Increase coverage rclcpp_action to 95% (#1290)
* Increase coverage rclcpp_action to 95% Signed-off-by: Stephen Brawner <[email protected]> * PR fixup Signed-off-by: Stephen Brawner <[email protected]> * Address PR Feedback Signed-off-by: Stephen Brawner <[email protected]> * Rebase onto #1311 Signed-off-by: Stephen Brawner <[email protected]> * rcutils test depend Signed-off-by: Stephen Brawner <[email protected]> * Cleaning up Signed-off-by: Stephen Brawner <[email protected]>
1 parent 3a4ac0c commit a855a7d

File tree

6 files changed

+1062
-24
lines changed

6 files changed

+1062
-24
lines changed

rclcpp_action/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,36 @@ if(BUILD_TESTING)
7777
ament_add_gtest(test_client test/test_client.cpp TIMEOUT 180)
7878
if(TARGET test_client)
7979
ament_target_dependencies(test_client
80+
"rcutils"
8081
"test_msgs"
8182
)
8283
target_link_libraries(test_client
8384
${PROJECT_NAME}
85+
mimick
8486
)
8587
endif()
8688

8789
ament_add_gtest(test_server test/test_server.cpp)
8890
if(TARGET test_server)
8991
ament_target_dependencies(test_server
92+
"rcutils"
9093
"test_msgs"
9194
)
9295
target_link_libraries(test_server
9396
${PROJECT_NAME}
97+
mimick
98+
)
99+
endif()
100+
101+
ament_add_gtest(test_server_goal_handle test/test_server_goal_handle.cpp)
102+
if(TARGET test_server_goal_handle)
103+
ament_target_dependencies(test_server_goal_handle
104+
"rcutils"
105+
"test_msgs"
106+
)
107+
target_link_libraries(test_server_goal_handle
108+
${PROJECT_NAME}
109+
mimick
94110
)
95111
endif()
96112

rclcpp_action/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<test_depend>ament_cmake_gtest</test_depend>
2323
<test_depend>ament_lint_auto</test_depend>
2424
<test_depend>ament_lint_common</test_depend>
25+
<test_depend>mimick_vendor</test_depend>
2526
<test_depend>test_msgs</test_depend>
2627

2728
<export>

0 commit comments

Comments
 (0)