Package rostest :: Module runner

Module runner

source code

Functions
 
getResults() source code
 
setTextMode(val) source code
 
getConfig() source code
 
getRostestParents() source code
 
failDuplicateRunner(testName) source code
 
failRunner(testName, message) source code
fn
rostestRunner(test, test_pkg, results_base_dir=None)
Test function generator that takes in a roslaunch Test object and returns a class instance method that runs the test.
source code
 
setUp(self) source code
 
tearDown(self) source code
 
createUnitTest(pkg, test_file, reuse_master=False, clear=False, results_base_dir=None)
Unit test factory.
source code
Variables
  __package__ = 'rostest'
Function Details

rostestRunner(test, test_pkg, results_base_dir=None)

source code 

Test function generator that takes in a roslaunch Test object and returns a class instance method that runs the test. TestCase setUp() is responsible for ensuring that the rest of the roslaunch state is correct and tearDown() is responsible for tearing everything down cleanly.

Parameters:
  • test (roslaunch.Test) - rost test to run
Returns: fn
function object to run testObj

createUnitTest(pkg, test_file, reuse_master=False, clear=False, results_base_dir=None)

source code 

Unit test factory. Constructs a unittest class based on the roslaunch

Parameters:
  • pkg (str) - package name
  • test_file (str) - rostest filename