rostest code coverage
I'm writing tests in python, and I'm hoping to use rostest and get a coverage report of my code.
I notice on the unittest page it says that this can be done by adding a coverage_packages
argument to rostest.rosrun
. Doing so gives me the following error in my test output:
TypeError: rosrun() got an unexpected keyword argument 'coverage_packages'
If I omit this argument and the tests actually run, no coverage report is generated anywhere I can see (neither log directory nor project directory).
I see that rosunit even has helper scripts for generating these... is this all deprecated and unsupported? Or is there a way to get code coverage reports?
Basic info:
- Ubuntu 12.04
- ROS Groovy
- rosbuild
- python