Skip to content

Commit b665207

Browse files
committed
Fix formatting of code and references in Integration.rst
Signed-off-by: Giorgio Pintaudi <LastStarDust@users.noreply.github.com>
1 parent 1d6681e commit b665207

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/Developer-Tools/Debugging/Testing/Integration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The main tool in use here is the `launch_testing <https://docs.ros.org/en/{DISTR
4242
(`launch_testing repository <https://github.com/ros2/launch/tree/{REPOS_FILE_BRANCH}/launch_testing>`_).
4343
This ROS-agnostic functionality can extend a Python launch file with both active tests (that run while the nodes are also running) and post-shutdown tests (which run once after all nodes have exited).
4444
``launch_testing`` relies on the Python standard module `unittest <https://docs.python.org/3/library/unittest.html>`_ for the actual testing.
45-
To get our integration tests run as part of ``colcon test``, we register the launch file in the ``CMakeLists.txt`` or `setup.py` file.
45+
To get our integration tests run as part of ``colcon test``, we register the launch file in the ``CMakeLists.txt`` or ``setup.py`` file.
4646

4747
For waiting on topics and triggering actions based on publisher availability, the `launch_testing_ros <https://docs.ros.org/en/{DISTRO}/p/launch_testing_ros/index.html>`_ package provides the `WaitForTopics <https://docs.ros.org/en/{DISTRO}/p/launch_testing_ros/launch_testing_ros.wait_for_topics.html>`_ utility, which simplifies topic subscription and waiting logic in integration tests.
4848

@@ -147,7 +147,7 @@ The simplest test verifies that a topic is published and messages are received:
147147
assert len(waiter.received_messages("turtle1/pose")) >= 1
148148
149149
This test creates a waiter that subscribes to the ``turtle1/pose`` topic expecting ``Pose`` messages.
150-
The `WaitForTopics` class automatically handles subscription and cleanup.
150+
The ``WaitForTopics`` class automatically handles subscription and cleanup.
151151
The test asserts that the topic was received and at least one message was captured.
152152

153153
1.3.2 Topic subscription with triggered action
@@ -228,8 +228,8 @@ This test demonstrates:
228228
* Using ``WaitForTopics`` with a trigger function to publish messages and wait for responses
229229
* Verifying that received messages match expected values
230230

231-
The while loop is necessary because the `turtlesim` node is constantly publishing pose messages, and
232-
we want to wait until we receive a pose that reflects the motion commanded by our published `Twist`
231+
The while loop is necessary because the ``turtlesim`` node is constantly publishing pose messages, and
232+
we want to wait until we receive a pose that reflects the motion commanded by our published ``Twist``
233233
message.
234234

235235
1.4 Post-shutdown tests

0 commit comments

Comments
 (0)