diff --git a/scenario_test/STOP_AVOID_BALL.py b/scenario_test/STOP_AVOID_BALL.py index c6011d24e..9f2c88b0b 100644 --- a/scenario_test/STOP_AVOID_BALL.py +++ b/scenario_test/STOP_AVOID_BALL.py @@ -41,3 +41,10 @@ def check(x: float, y: float, vx: float = 0.0, vy: float = 0.0): check(0, 0) check(3.5, 0) check(3.5, 0, vx=-2.0) + + +if __name__ == "__main__": + rcst_comm = Communication() + test_avoid_ball(rcst_comm) + rcst_comm.close() + print("STOP_AVOID_BALL test passed") diff --git a/scenario_test/STOP_ROBOT_SPEED.py b/scenario_test/STOP_ROBOT_SPEED.py index 84b009b2a..6f3a6ec9b 100644 --- a/scenario_test/STOP_ROBOT_SPEED.py +++ b/scenario_test/STOP_ROBOT_SPEED.py @@ -42,3 +42,10 @@ def yellow_robot_did_not_move( assert success is True assert rcst_comm.observer.customized().get_result("yellow_robot_did_not_move") is False + + +if __name__ == "__main__": + rcst_comm = Communication() + test_robot_speed(rcst_comm) + rcst_comm.close() + print("STOP_ROBOT_SPEED test passed") diff --git a/scenario_test/emit_from_penalty_01.py b/scenario_test/emit_from_penalty_01.py index ff5a79bd5..04f74d966 100644 --- a/scenario_test/emit_from_penalty_01.py +++ b/scenario_test/emit_from_penalty_01.py @@ -22,3 +22,10 @@ def test_emit_from_penalty_01(rcst_comm: Communication): rcst_comm.observer.get_world().get_ball().x, rcst_comm.observer.get_world().get_ball().y ) assert success is True + + +if __name__ == "__main__": + rcst_comm = Communication() + test_emit_from_penalty_01(rcst_comm) + rcst_comm.close() + print("emit_from_penalty_01 test passed")