PilzDE / pilz_teach

Jogging a manipulator and defining poses as you are used to in robotics controllers, but using native ROS functionality
GNU General Public License v3.0
3 stars 2 forks source link

python-coverage for unittests #39

Open jschleicher opened 4 years ago

jschleicher commented 4 years ago

the _nosetests macro reads the environment variable CATKIN_TEST_COVERAGE, so that has to be set, see catkin/cmake

export CATKIN_TEST_COVERAGE=1

Then a .coverage is created inside the build directory. We'd have to combine them with the rostest output and different nosetest runs (that are using unittest without nose by the way)

In fact I think we probably need to fix the catkin cmake macros for proper python coverage...

_Originally posted by @jschleicher in https://github.com/PilzDE/pilz_teach/pull/34#issuecomment-567009247_

tobi-v commented 4 years ago

Another option might be using ros-pytest instead.

agutenkunst commented 4 years ago

Any news on this? We stumbled upon the same issue... You guys rely on ros-pytest for now?

jschleicher commented 4 years ago

@agutenkunst We determine the coverage locally using bash script run-coverage.sh for now. Should be integrated into moveit-ci at some later point I'd say.