Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 417

How to run tests in a ROS package?

$
0
0
I've written a ROS package, containing some nodes/scripts/messages etc, all laid out using the [recommended folder structure.](http://www.artificialhumancompanions.com/structure-python-based-ros-package/) I'm not trying to execute some tests using the standard `catkin_make run_tests` and I'm getting the error: The specified base path "my_ros_package" contains a package but "catkin_make" must be invoked in the root of workspace If I'm reading this correctly, it's saying I need to create a ROS workspace...just to run tests? This seems a little strange to me. I've written a ton of unittests for Python packages, mostly using the Tox tool, and this handles creating a virtualenv, installing all your dependencies, and then running your tests, all from your Python package. I've never had to create a second Python package just to run my first package's tests. If you've created a ROS project in a git repo, how are you supposed to test it? Create another git repo containing a "test" ROS workspace...which then clones your first repo? That seems redundant.

Viewing all articles
Browse latest Browse all 417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>