module documentation

Undocumented

Function create_xml_runner Create the unittest test runner with XML output @param test_pkg: package name @type test_pkg: str @param test_name: test name @type test_name: str @param is_rostest: if True, use naming scheme for rostest itself instead of individual unit test naming @type is_rostest: bool...
Function makedirs_with_parent_perms Create the directory using the permissions of the nearest (existing) parent directory. This is useful for logging, where a root process sometimes has to log in the user's space. @param p: directory to create @type p: str...
Function printerrlog Undocumented
Function printlog Undocumented
Function printlog_bold Undocumented
Function rostest_name_from_path Derive name of rostest based on file name/path. rostest follows a certain convention defined above.
Function xml_results_file @param test_pkg: name of test's package @type test_pkg: str @param test_name str: name of test @type test_name: str @param is_rostest: True if the results file is for a rostest-generated unit instance @type is_rostest: bool @return: name of xml results file for specified test @rtype: str...
Constant XML_OUTPUT_FLAG Undocumented
def create_xml_runner(test_pkg, test_name, results_file=None, is_rostest=False):

Create the unittest test runner with XML output @param test_pkg: package name @type test_pkg: str @param test_name: test name @type test_name: str @param is_rostest: if True, use naming scheme for rostest itself instead of individual unit test naming @type is_rostest: bool

def makedirs_with_parent_perms(p):

Create the directory using the permissions of the nearest (existing) parent directory. This is useful for logging, where a root process sometimes has to log in the user's space. @param p: directory to create @type p: str

def printerrlog(msg, *args):

Undocumented

def printlog(msg, *args):

Undocumented

def printlog_bold(msg, *args):

Undocumented

def rostest_name_from_path(pkg_dir, test_file):

Derive name of rostest based on file name/path. rostest follows a certain convention defined above.

@return: name of test @rtype: str

def xml_results_file(test_pkg, test_name, is_rostest=False, env=None):

@param test_pkg: name of test's package @type test_pkg: str @param test_name str: name of test @type test_name: str @param is_rostest: True if the results file is for a rostest-generated unit instance @type is_rostest: bool @return: name of xml results file for specified test @rtype: str

XML_OUTPUT_FLAG: str =

Undocumented

Value
'--gtest_output=xml:'