Skip to content

Add unit tests for sub-command tab completers#1227

Merged
ahcorde merged 3 commits into
ros2:rollingfrom
MzKyle:rolling-dco
May 15, 2026
Merged

Add unit tests for sub-command tab completers#1227
ahcorde merged 3 commits into
ros2:rollingfrom
MzKyle:rolling-dco

Conversation

@MzKyle
Copy link
Copy Markdown
Contributor

@MzKyle MzKyle commented May 4, 2026

Add unit tests for the existing completer helpers/classes in ros2component, ros2node, ros2run, ros2service, and ros2topic.
Fixes #1173
Validation:

  • get_errors reported no syntax or lint diagnostics in the new test files.
  • Local source inspection confirms the new ros2topic expectation matches the workspace implementation.

MzKyle added 2 commits May 3, 2026 23:37
Signed-off-by: MzKyle <19862681939@163.com>
Signed-off-by: MzKyle <19862681939@163.com>
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests look good, just a minor nitpick we need to address.

thanks for the contribution though!

Comment thread ros2node/test/test_api.py Outdated
@fujitatomoya
Copy link
Copy Markdown
Collaborator

@MzKyle thanks for quick response!

Comment thread .marscode/deviceInfo.json Outdated
Signed-off-by: MzKyle <19862681939@163.com>
@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #1227
Gist: https://gist.githubusercontent.com/fujitatomoya/cb569fdd0c0e00a3c75266b802636563/raw/474f8fafd0124891908624c69202451e4de47ad3/ros2.repos
BUILD args: --packages-above-and-dependencies ros2action ros2component ros2node ros2run ros2service ros2topic
TEST args: --packages-above ros2action ros2component ros2node ros2run ros2service ros2topic
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19272

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit fe5f814 into ros2:rolling May 15, 2026
3 checks passed
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented May 15, 2026

@fujitatomoya should we backport this to older distros?

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@Mergifyio backport lyrical

@mergify
Copy link
Copy Markdown

mergify Bot commented May 15, 2026

backport lyrical

✅ Backports have been created

Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add unit tests for sub-command tab completer

3 participants