Skip to content

Commit

Permalink
Mention not needing to source workspace before running tests (ros2#3677)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard committed May 24, 2023
1 parent 0cfea83 commit 87a3bd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ To run tests for the packages we just built, run the following:
You also need to specify ``--merge-install`` here since we used it for building above.

.. _colcon-tutorial-source-the-environment:

Source the environment
^^^^^^^^^^^^^^^^^^^^^^

Expand Down
3 changes: 3 additions & 0 deletions source/Tutorials/Intermediate/Testing/CLI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ To compile and run the tests, simply run the `test <https://colcon.readthedocs.i
(where ``package_selection_args`` are optional package selection arguments for ``colcon`` to limit which packages are built and run)

:ref:`Sourcing the workspace <colcon-tutorial-source-the-environment>` before testing should not be necessary.
``colcon test`` makes sure that the tests run with the right environment, have access to their dependencies, etc.

Examine Test Results
^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 87a3bd9

Please sign in to comment.