Add subscription creation test

This commit is contained in:
Christophe Bedard 2019-05-31 16:43:04 +02:00
parent 6caaa51764
commit cc8187e55b
5 changed files with 111 additions and 2 deletions

View file

@ -23,8 +23,17 @@ if(BUILD_TESTING)
rclcpp
std_msgs
)
add_executable(test_subscription
test/test_subscription.cpp
)
ament_target_dependencies(test_subscription
rclcpp
std_msgs
)
install(TARGETS
test_publisher
test_subscription
DESTINATION lib/${PROJECT_NAME}
)
@ -33,6 +42,7 @@ if(BUILD_TESTING)
# Run each test in its own pytest invocation
set(_tracetools_test_pytest_tests
test/test_publisher.py
test/test_subscription.py
)
foreach(_test_path ${_tracetools_test_pytest_tests})