Ask Your Question
2

Catkin Tools create Test without running them

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

Prostyle gravatar image

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

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 155 times

Last updated: Aug 10 '20