Interface for using rostest from other Python code as well as running Python unittests with additional reporting mechanisms and rosbuild (CMake) integration.
Module | rostest |
Undocumented |
Module | rostest |
Undocumented |
Module | rostestutil |
No module docstring; 0/1 variable, 1/4 function documented |
Module | runner |
No module docstring; 0/4 variable, 2/12 functions documented |
From __init__.py
:
Function | deprecated |
This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted when the function is used. |
Function | get |
Get an XMLRPC handle to the Master. It is recommended to use the rosgraph.masterapi library instead, as it provides many conveniences. |
Function | is |
Predicate to check whether or not master think publisher_id publishes topic :returns: True if still register as a publisher, bool :raises: IOError If communication with master fails |
Function | is |
Check whether or not master think subscriber_id subscribes to topic |
Function | rosrun |
Run a rostest/unittest-based integration test. |
Function | rostestmain |
Undocumented |
Function | unitrun |
Wrapper routine from running python unitttests with JUnit-compatible XML output. This is meant for unittests that do not not need a running ROS graph (i.e. offline tests only). |
Constant | XML |
Undocumented |
Function | _start |
Undocumented |
Function | _stop |
@param packages: list of packages to generate coverage reports for @type packages: [str] @param html: (optional) if not None, directory to generate html report to @type html: str |
Constant | _GLOBAL |
Undocumented |
Variable | _cov |
Undocumented |
Get an XMLRPC handle to the Master. It is recommended to use the
rosgraph.masterapi
library instead, as it provides many
conveniences.
@return: XML-RPC proxy to ROS master @rtype: xmlrpclib.ServerProxy
Check whether or not master think subscriber_id subscribes to topic
Returns | |
True if still register as a subscriber, bool | |
Raises | |
Unknown exception | IOError If communication with master fails |
Predicate to check whether or not master think publisher_id publishes topic :returns: True if still register as a publisher, bool :raises: IOError If communication with master fails
Run a rostest/unittest-based integration test.
@param package: name of package that test is in @type package: str @param test_name: name of test that is being run @type test_name: str @param test: a test case instance or a name resolving to a test case or suite @type test: unittest.TestCase, or string @param sysargs: command-line args. If not specified, this defaults to sys.argv. rostest
will look for the --text and --gtest_output parameters
@type sysargs: list
This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emitted when the function is used.
Wrapper routine from running python unitttests with JUnit-compatible XML output. This is meant for unittests that do not not need a running ROS graph (i.e. offline tests only).
This enables JUnit-compatible test reporting so that test results can be reported to higher-level tools.
@param package: name of ROS package that is running the test @type package: str @param coverage_packages: list of Python package to compute coverage results for. Defaults to package @type coverage_packages: [str]