Classes | Functions | Variables
rocon_test::runner Namespace Reference

Classes

class  RoconTestLaunchConfiguration
 Construction Methods. More...

Functions

def _accumulate_results
def _add_rocon_test_parent
def create_unit_rocon_test
def fail_duplicate_runner
 generate test failure if tests with same name in launch file
def fail_runner
def get_results
def get_rocon_test_parents
def rocon_test_runner
def set_pause_mode
def set_text_mode
def setUp
def tearDown

Variables

 _config = None
int _DEFAULT_TEST_PORT = 22422
 Globals.
 _pause_mode = False
tuple _results = rosunit.junitxml.Result('rocon_test', 0, 0, 0)
list _test_parents = []
 Parents.
 _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.

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.

Definition at line 36 of file runner.py.

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.

Definition at line 49 of file runner.py.

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.

  Function that becomes TestCase.tearDown()

Definition at line 145 of file runner.py.


Variable Documentation

Definition at line 61 of file runner.py.

Globals.

Definition at line 30 of file runner.py.

Definition at line 33 of file runner.py.

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

Definition at line 31 of file runner.py.

Parents.

Definition at line 59 of file runner.py.

Definition at line 32 of file runner.py.



rocon_test
Author(s): Daniel Stonier
autogenerated on Sat Jun 8 2019 18:48:47