ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Catkin Tools create Test without running them

asked 2020-08-10 10:04:23 -0500

Prostyle gravatar image

updated 2020-08-10 12:10:11 -0500

Hello,

is it possible to create just tests with catkin tools instead of creating AND running them?

for example

-catkin build --this
-cd /catkin_ws
-source setup/devel.bash
-rostest <pkg> <test> //error

will faill.

while

- catkin build  --this --catkin-make-args run_tests //is there a make_test tests? Since this also executes the tests, what i dont want
-cd /catkin_ws
-source setup/devel.bash
-rostest <pkg> <test> //now works, but test already run before..

will build AND rund them.

I need this for a ci pipeline

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-16 10:49:05 -0500

rapit gravatar image

You can use the target tests to only build the tests and not run them:

catkin build --this --catkin-make-args tests

I couldn't find it in any catkin_tools related documentation, just tested some targets and this seems to work.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-10 10:04:23 -0500

Seen: 604 times

Last updated: Aug 10 '20