moveit2
The MoveIt Motion Planning Framework for ROS 2.
moveit_ros
moveit_servo
test
launch
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
10
def
generate_test_description
():
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)
test_servo_integration.TestGTestProcessPostShutdown
Definition:
test_servo_integration.test.py:21
test_servo_integration.TestGTestProcessPostShutdown.test_gtest_pass
def test_gtest_pass(self, proc_info, servo_gtest)
Definition:
test_servo_integration.test.py:23
test_servo_integration.TestGTestWaitForCompletion
Definition:
test_servo_integration.test.py:14
test_servo_integration.TestGTestWaitForCompletion.test_gtest_run_complete
def test_gtest_run_complete(self, servo_gtest)
Definition:
test_servo_integration.test.py:16
servo_launch_test_common.generate_servo_test_description
def generate_servo_test_description(*args, SomeSubstitutionsType gtest_name, SomeSubstitutionsType start_position_path="")
Definition:
servo_launch_test_common.py:20
test_servo_integration.generate_test_description
def generate_test_description()
Definition:
test_servo_integration.test.py:10
Generated by
1.9.1