Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.22 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.22 KB

catkin_lint_cmake

CI

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.