moveit2
The MoveIt Motion Planning Framework for ROS 2.
test_servo_integration.test.py
Go to the documentation of this file.
1 import launch_testing
2 import os
3 import sys
4 import unittest
5 
6 sys.path.append(os.path.dirname(__file__))
7 from servo_launch_test_common import generate_servo_test_description
8 
9 
11  return generate_servo_test_description(gtest_name="test_servo_integration")
12 
13 
14 class TestGTestWaitForCompletion(unittest.TestCase):
15  # Waits for test to complete, then waits a bit to make sure result files are generated
16  def test_gtest_run_complete(self, servo_gtest):
17  self.proc_info.assertWaitForShutdown(servo_gtest, timeout=4000.0)
18 
19 
20 @launch_testing.post_shutdown_test()
21 class TestGTestProcessPostShutdown(unittest.TestCase):
22  # Checks if the test has been completed with acceptable exit codes (successful codes)
23  def test_gtest_pass(self, proc_info, servo_gtest):
24  launch_testing.asserts.assertExitCodes(proc_info, process=servo_gtest)
def generate_servo_test_description(*args, SomeSubstitutionsType gtest_name, SomeSubstitutionsType start_position_path="")