Skip to content

Commit

Permalink
Increase coverage rclcpp_action to 95% (#1290)
Browse files Browse the repository at this point in the history
* Increase coverage rclcpp_action to 95%

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* PR fixup

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Address PR Feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Rebase onto #1311

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* rcutils test depend

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Cleaning up

Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner committed Sep 22, 2020
1 parent 3a4ac0c commit a855a7d
Show file tree
Hide file tree
Showing 6 changed files with 1,062 additions and 24 deletions.
16 changes: 16 additions & 0 deletions rclcpp_action/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,36 @@ if(BUILD_TESTING)
ament_add_gtest(test_client test/test_client.cpp TIMEOUT 180)
if(TARGET test_client)
ament_target_dependencies(test_client
"rcutils"
"test_msgs"
)
target_link_libraries(test_client
${PROJECT_NAME}
mimick
)
endif()

ament_add_gtest(test_server test/test_server.cpp)
if(TARGET test_server)
ament_target_dependencies(test_server
"rcutils"
"test_msgs"
)
target_link_libraries(test_server
${PROJECT_NAME}
mimick
)
endif()

ament_add_gtest(test_server_goal_handle test/test_server_goal_handle.cpp)
if(TARGET test_server_goal_handle)
ament_target_dependencies(test_server_goal_handle
"rcutils"
"test_msgs"
)
target_link_libraries(test_server_goal_handle
${PROJECT_NAME}
mimick
)
endif()

Expand Down
1 change: 1 addition & 0 deletions rclcpp_action/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>mimick_vendor</test_depend>
<test_depend>test_msgs</test_depend>

<export>
Expand Down
Loading

0 comments on commit a855a7d

Please sign in to comment.