警告

您正在閱讀已達到生命週期結束(end-of-life,EOL)版本的 ROS 2 文件,該版本不再正式受支援。如果您想獲取最新資訊,請參見 Kilted

Running Tests in ROS 2 from the Command Line

Build and run your tests

To compile and run the tests, simply run the test verb from colcon.

colcon test --cmake-args tests [package_selection_args]

(where package_selection_args are optional package selection arguments for colcon to limit which packages are built and run)

Examine Test Results

To see the results, simply run the test-result verb from colcon.

colcon test-result --all