Repository Summary
Checkout URI | https://github.com/tue-robotics/catkin_lint_cmake.git |
VCS Type | git |
VCS Version | master |
Last Updated | 2023-09-06 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Packages
Name | Version |
---|---|
catkin_lint_cmake | 0.0.1 |
README
catkin_lint_cmake
Catkin macro to run catkin_lint
as a catkin run_test
.
The catkin_lint
library is wrapped to convert it’s xml scheme to a JUnit scheme.
Usage
Add catkin_lint_cmake
to your package.xml
as a test dependency.
<test_depend>catkin_lint_cmake</test_depend>
In your cmake file, find this package and call the macro to add the test.
if(CATKIN_ENABLE_TESTING)
find_package(catkin_lint_cmake REQUIRED)
catkin_add_catkin_lint_test([ARGS])
endif()
By default, it runs in quiet mode with XML output. You can overrule the quiet mode, but not the XML output. No other default arguments have been overridden.
All arguments of the function are passed to catkin_lint
(catkin_lint
command line arguments).
Important: catkin_lint
will only give a non-zero error-code in case of errors.
Though the macro will take all issues into account based on the selected severity level.
So with -W2
even a notice
will cause the test to fail.