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

rostest xml API

asked 2011-08-06 05:16:46 -0500

KruseT gravatar image

I am wondering whether how to provide gtest compatible executables in other languages than cpp and python.

I can see that adding a <test> node to a launch file will call the executable with at least: '--gtest_output=xml:.../.ros/test_results/.../TEST-test-name_test.xml' I'll guess support of this option is what an executable would minimally need to supply, for extended use maybe also --gtest_repeat, --gtest_filter

I assume the executable must then write an xml file containing junit-like xml the way gtest generates it.

Is there more to it than that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-08-06 08:26:19 -0500

kwc gravatar image

updated 2011-08-06 08:27:56 -0500

That's basically it.

The only other additions are the CMake macros for invoking the tests if you wish to run standalone unit tests (i.e. with rosunit). The macros are mainly a matter of convenience.

edit flag offensive delete link more

Question Tools


Asked: 2011-08-06 05:16:46 -0500

Seen: 394 times

Last updated: Aug 06 '11