Robotics StackExchange | Archived questions

To run non-ROS pytest via Catkin

Is there a way to run pytest-based, non-ROS test cases (so that I don't need rostest) via Catkin?

ros_pytest provides a way to run rostest for the test cases that are built on pytest framework. That is nice, but not all tests should require ROS. I want to utilize Catkin's feature to run the tests in all federated packages for both ROS-based and non-ROS-based test cases.

Asked by 130s on 2021-09-23 08:48:45 UTC

Comments

@machinekoder care to chime in?

Asked by 130s on 2021-09-23 09:13:25 UTC

You should be able to run the tests also with the pytest runner. It doesn't matter if the test source code contains ROS specific stuff or not.

Asked by machinekoder on 2021-12-24 06:39:11 UTC

Answers