Only one package:
--packages-select <package>
Packages with regex:
--packages-select-regex <regex>
Verbose, print to console:
--event-handlers console_direct+
Run specific tests:
--ctest-args -R <part of test name>
Disable tests compilation:
--cmake-args -DBUILD_TESTING=false
Combine multiple CMake args:
--cmake-args ' -DBUILD_TESTING=false' ' -DENABLE_PROFILER=1'
Repeat test:
--retest-until-fail 10
Uninstall:
colcon build --packages-select <package> --cmake-target uninstall
Number of cores:
MAKEFLAGS="-j4" colcon build
Specific target, like codecheck
:
--cmake-target codecheck
List all available targets for a project:
cd build/project_name
make help
Thank you :)