Estás leyendo la documentación para una versión de desarrollo. Para la última versión publicada, por favor revisa Humble.
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 --ctest-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
To see the exact test cases which fail, use the --verbose
flag:
colcon test-result --all --verbose