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

how do I test code agenst `catkin install`-ed directory

asked 2014-02-20 19:47:12 -0600

Kei Okada gravatar image

updated 2014-04-01 18:35:06 -0600

As far as I understand correctly catkin_make test uses code under devel directory, is there way to test code for install directory?

edit retag flag offensive close merge delete

Comments

Can you clarify a little bit? There's no catkin_test command.

tfoote gravatar image tfoote  ( 2014-04-01 18:04:58 -0600 )edit

sorry, I asked about `catkin_make test` against installed program

Kei Okada gravatar image Kei Okada  ( 2014-04-01 18:35:36 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-02 08:11:39 -0600

Dirk Thomas gravatar image

All tests are only run against the devel space. So you can not run the unit tests of a specific package against the installed version of the same package.

What you can do is run the tests of a package foo against the installed version of all dependencies. Therefore you first build and install all dependencies using one workspace and then use a second workspace containing foo and run its tests. Usually those kind of tests are not unit tests but integration tests - you might consider to bundle integration tests into separate packages (which you could ignore when releasing a repo) for this purpose.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-20 19:47:12 -0600

Seen: 139 times

Last updated: Apr 02 '14