Package rosunit :: Module baretest
[frames] | no frames]

Module baretest

source code

rostest implementation of running bare (gtest-compatible) unit test executables. These do not run in a ROS environment.

Classes
  TestTimeoutException
  BareTestCase
  LocalProcess
Process launched on local machine
Functions
 
print_runner_summary(runner_results, junit_results, runner_name='ROSUNIT')
Print summary of runner results and actual test results to stdout.
source code
 
print_unittest_summary(result)
Print summary of python unittest result to stdout
source code
Variables
  BARE_TIME_LIMIT = 60.0
  TIMEOUT_SIGINT = 15.0
  TIMEOUT_SIGTERM = 2.0
  __package__ = 'rosunit'
Function Details

print_runner_summary(runner_results, junit_results, runner_name='ROSUNIT')

source code 

Print summary of runner results and actual test results to stdout. For rosunit and rostest, the test is wrapped in an external runner. The results from this runner are important if the runner itself has a failure.

Parameters:
  • runner_result (_XMLTestResult) - unittest runner result object
  • junit_results (rosunit.junitxml.Result) - Parsed JUnit test results

print_unittest_summary(result)

source code 

Print summary of python unittest result to stdout

Parameters:
  • result - test results