Ask Your Question
2

how to specify test packge in `catkin_make test`

asked 2014-03-06 23:55:39 -0500

Kei Okada gravatar image

can we choose package to be tested? currently catkin_make test tests all test code under src directory, but I'd like to check only specific packages, in order to save time.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-03-07 04:20:15 -0500

William gravatar image

The test target is CTest, you can read the CTest documentation if you want to use that target.

catkin provides the run_tests target which runs all the tests. You can tab complete run_tests_ to get a target for each test you have registered which only runs that test.

edit flag offensive delete link more

Comments

thank you, that is the perfect answer!

Kei Okada gravatar image Kei Okada  ( 2014-03-07 06:07:32 -0500 )edit

Another question, make run_tests_* exits with 0 even if the test failed. Is it expected behavior? is there a way to catch if the test failed?

Kei Okada gravatar image Kei Okada  ( 2014-03-07 06:22:56 -0500 )edit

thanks!, that works great.

Kei Okada gravatar image Kei Okada  ( 2014-03-07 17:43:29 -0500 )edit
1

answered 2014-03-07 08:15:49 -0500

Dirk Thomas gravatar image

Yes, that is the expected behavior of any make target. You can check the output / return code of the `catkin_test_results` script instead.

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

Stats

Asked: 2014-03-06 23:55:39 -0500

Seen: 558 times

Last updated: Mar 07 '14