-
Notifications
You must be signed in to change notification settings - Fork 381
Add tests for launch_utils of controller manager (#2147) #2768
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
base: master
Are you sure you want to change the base?
Conversation
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.
The tests you added are some sort of unit tests, checking if the returned objects are of expected type/size. But it does not check if the returned actions work as expected (let's call this integration test).
Can you please extract the new tests from this file (new tests are not testing ros2_control_node at all, and don't need launch_ros or launch_testing) in a launch_utils_unit_test file, and add distinct files for the integration tests of the three methods of the launch_utils? You could also extend the existing test_ros2_control_node_launch.py by adding more controllers, and spawn different combinations with the different methods at once.
Please also install pre-commit and fix the failing tests by running pre-commit run --all
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2768 +/- ##
==========================================
+ Coverage 89.62% 89.65% +0.03%
==========================================
Files 152 152
Lines 17637 17670 +33
Branches 1448 1451 +3
==========================================
+ Hits 15807 15842 +35
+ Misses 1246 1241 -5
- Partials 584 587 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Thanks for the comment, @christophfroehlich! Let me try again then... |
|
Hi @christophfroehlich, I hope that it will work ok this time please. I first did the pre-commit ok in my jazzy branch but once I merged back to the master branch, I forgot to redo the pre-commit and so I had another commit to fix that again! Thanks! |
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
To send us a pull request, please:
colcon testandpre-commit run(requires you to install pre-commit bypip3 install pre-commit)