launch_testing.loader module

launch_testing.loader.LoadTestsFromPythonModule(module, *, name='launch_tests')
launch_testing.loader.PostShutdownTestLoader()
launch_testing.loader.PreShutdownTestLoader()
class launch_testing.loader.TestRun(name, test_description_function, param_args, pre_shutdown_tests, post_shutdown_tests)

Bases: object

all_cases()
bind(tests, injected_attributes={}, injected_args={})

Bind injected_attributes and injected_args to tests.

Injected Attributes can be accessed from a test as self.name Injected Arguments can be accessed as an argument if the test has an argument with a matching name

get_launch_description()

Get just the launch description portion of the test_description.

This should only be used for the purposes of introspecting the launch description. The returned launch description is not meant to be launched

property markers
launch_testing.loader.slim_formatwarning(msg, *args, **kwargs)