-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increasing test coverage rclcpp_lifecycle #1045
Conversation
rclcpp_action/CMakeLists.txt
Outdated
@@ -98,6 +98,16 @@ if(BUILD_TESTING) | |||
${PROJECT_NAME} | |||
) | |||
endif() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR also adds a lot of tests for rclcpp_action
, were those added intentionally here?
Seems that the same tests were added in #1043
rclcpp_components/CMakeLists.txt
Outdated
set(components "${components}test_rclcpp_components::TestComponentThrows;$<TARGET_FILE:test_component>\n") | ||
|
||
# Used to catch invalid resource entry | ||
set(invalid_components "test_rclcpp_components::TestComponentFoo;;$<TARGET_FILE:test_component>\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same about adding tests to rclcpp_components
, sounds like a duplicate of #1044.
@ivanpauno Because there was a lot of files added in these PRs, I broke them out into three different ones stacked on top of one another. There is no reason why they should be dependent on one another. I'll clean that up. |
Signed-off-by: Stephen Brawner <brawner@gmail.com>
7441e1d
to
7926cc6
Compare
|
||
void TearDown() override | ||
{ | ||
rclcpp::shutdown(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling shutdown
from a different thread causes a race which was making this test fail in the nightly jobs since it has been added. See #1204 for the proposed fix.
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
As with #1043 and #1044, this PR increases the test coverage for rclcpp_lifecycle. The test coverage increases from 61% to 100% of the
include
files and 87% of thesrc
files (88% combined)Depends on #1043, #1044
New commit: 7441e1d