ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Looking at the code, it seems that rostest.rosrun does not take 5th argument coverage_package.

def rosrun(package, test_name, test, sysargs=None):

Instead, unitrun (seems deprecated) takes it (code).

def unitrun(package, test_name, test, sysargs=None, coverage_packages=None):
    :
    @param coverage_packages: list of Python package to compute coverage results for. Defaults to package
    @type coverage_packages: [str]

It would be beneficial to the community if you could test this method and provide how it goes.

Btw, with coverage_packages I think you need to give actual name of the packages; what your error message indicates is you gave coverage_packages string.