Classes | Functions | Variables
rocon_test.runner Namespace Reference

Classes

class  RoconTestLaunchConfiguration
 Construction Methods. More...
 

Functions

def _accumulate_results (results)
 
def _add_rocon_test_parent (runner)
 
def create_unit_rocon_test (rocon_launcher, launchers)
 
def fail_duplicate_runner (test_name)
 generate test failure if tests with same name in launch file More...
 
def fail_runner (test_name, message)
 
def get_results ()
 
def get_rocon_test_parents ()
 
def rocon_test_runner (test, test_launch_configuration, test_pkg)
 
def set_pause_mode (val)
 
def set_text_mode (val)
 
def setUp (self)
 
def tearDown (self)
 

Variables

 _config = None
 
int _DEFAULT_TEST_PORT = 22422
 Globals. More...
 
bool _pause_mode = False
 
 _results = rosunit.junitxml.Result('rocon_test', 0, 0, 0)
 
list _test_parents = []
 Parents. More...
 
bool _text_mode = False
 

Function Documentation

def rocon_test.runner._accumulate_results (   results)
private

Definition at line 40 of file runner.py.

def rocon_test.runner._add_rocon_test_parent (   runner)
private

Definition at line 64 of file runner.py.

def rocon_test.runner.create_unit_rocon_test (   rocon_launcher,
  launchers 
)
  Constructs the python unit test class.

  @param rocon_launcher : absolute path to the rocon test launcher
  @param launchers : list of individual launcher configurations (name, path, port etc) in rocon_launcher
  @return unittest.TestCase : unit test class

Definition at line 273 of file runner.py.

def rocon_test.runner.fail_duplicate_runner (   test_name)

generate test failure if tests with same name in launch file

Definition at line 167 of file runner.py.

def rocon_test.runner.fail_runner (   test_name,
  message 
)

Definition at line 174 of file runner.py.

def rocon_test.runner.get_results ( )

Definition at line 36 of file runner.py.

def rocon_test.runner.get_rocon_test_parents ( )

Definition at line 70 of file runner.py.

def rocon_test.runner.rocon_test_runner (   test,
  test_launch_configuration,
  test_pkg 
)
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.

:param test: ros test to run
:type test: :class:`.RoconTestLaunchConfiguration`
:returns: function object to run testObj
:rtype: fn

Definition at line 181 of file runner.py.

def rocon_test.runner.set_pause_mode (   val)

Definition at line 49 of file runner.py.

def rocon_test.runner.set_text_mode (   val)

Definition at line 44 of file runner.py.

def rocon_test.runner.setUp (   self)
  Function that becomes TestCase.setUp()

  For each launcher representing a launch on a single master in the rocon
  launcher, this makes sure there is an entity that is to be the 'parent'
  who will later be responsible for shutting everything down.

  This could be prone to problems if someone puts multiple test launchers in
  rocon launcher with the same master port (untested).

Definition at line 94 of file runner.py.

def rocon_test.runner.tearDown (   self)
  Function that becomes TestCase.tearDown()

Definition at line 145 of file runner.py.

Variable Documentation

rocon_test.runner._config = None
private

Definition at line 61 of file runner.py.

int rocon_test.runner._DEFAULT_TEST_PORT = 22422
private

Globals.

Definition at line 30 of file runner.py.

bool rocon_test.runner._pause_mode = False
private

Definition at line 33 of file runner.py.

rocon_test.runner._results = rosunit.junitxml.Result('rocon_test', 0, 0, 0)
private

Definition at line 31 of file runner.py.

list rocon_test.runner._test_parents = []
private

Parents.

Definition at line 59 of file runner.py.

bool rocon_test.runner._text_mode = False
private

Definition at line 32 of file runner.py.



rocon_test
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 14:40:14