playerproject / player

The Player cross-platform robot device interface & server
GNU General Public License v2.0
58 stars 31 forks source link

player test suite #4

Open rashadkm opened 9 years ago

rashadkm commented 9 years ago

How to start test suite of player project?

In cmake configuration, I can see PLAYER_BUILD_TESTS and is ON by default. But I couldn't find any tests.

richmattes commented 9 years ago

There isn't a test suite in Player, and the PLAYER_BUILD_TESTS isn't actually used anywhere. There is an option called BUILD_CC_TESTS, which builds a playerc++_test executable that can connect to a running Player server and test several of the interfaces. It's located in <builddir>/client_libs/libplayerc++/test/libplayerc++_test (pass the --help) command to it for usage. There is no make target to run it.

There is also a similar client test in playerc, but there are no CMake rules to build it at the moment.