launch_testing.test_result module
- class launch_testing.test_result.FailResult(test_run, message)
Bases:
TestResult
For test runs that fail when the DUT dies unexpectedly.
- property testCases
- property testTimes
Get a dict of {test_case: elapsed_time}.
- wasSuccessful()
Tells whether or not this result was a success.
- class launch_testing.test_result.SkipResult(test_run, skip_reason='')
Bases:
TestResult
For test runs with a skip decorator on the generate_test_description function.
- property testCases
- property testTimes
Get a dict of {test_case: elapsed_time}.
- wasSuccessful()
Tells whether or not this result was a success.
- class launch_testing.test_result.TestResult(stream=None, descriptions=None, verbosity=None)
Bases:
TextTestResult
Subclass of unittest.TestResult that collects more information about the tests that ran.
This class extends TestResult by recording all of the tests that ran, and by recording start and stop time for the individual test cases
- append(results)
- startTest(test)
Called when the given test is about to be run
- stopTest(test)
Called when the given test has been run
- property testCases
- property testTimes
Get a dict of {test_case: elapsed_time}.