I have a ROS application that starts several different processes with different ros nodes. As well as this I have some scripts (that start this node) that also run some python scripts. Here is a simplified example:
Server Launch File
<node pkg="ui" name="hmuiserver" type="server.py" launch-prefix="$(eval 'python3-coverage run --source=/opt/project/')"/>
Start Script
if python3-coverage run /opt/proj/lib/feature_set.py; then echo "Feature Enabled!" fi cmd="roslaunch ui hmui.launch"
When I run this start script, I get a coverage report from python-coverage
that covers the scripts run through the server.py. But I do not get coverage from the feature_set.py
script. I am guessing this is going to be to do with some multiprocess stuff. What settings do I need to use to capture the coverage of both files in this scenario?
没有评论:
发表评论