ros2 / ros2/system_tests

[test_communication] Refactor test_messages_c.cpp to be closer to test_publisher.cpp and test_subscriber.cpp

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
45
Forks
57
Avg merge
9h 19m
Merged PRs (30d)
2

Description

Feature request

Feature description

test_messages_c.cpp defines its own fixtures and is a monolothic >1000 line file. We should refactor it to use create executables similar to the c++ test_publisher/test_subscriber and move the fixtures to the test_msgs package

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test_communication/test/test_messages_c.cpp and compare it with the referenced test_publisher.cpp and test_subscriber.cpp. Trace how those tests use separate executables, then determine how the fixtures can be moved to the test_msgs package. Done means the monolithic file follows the comparable test structure and the fixtures are relocated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.