Megatron Core Testing Guide
NVIDIA/Megatron-LM
Guide to the Megatron-LM test system: layout, recipe YAML, running and adding unit and functional tests, golden values, marker filters and CI parity.
Testing strategies, patterns, and tools for robotics software.
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/robotics-testing .claude/skills/robotics-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .claude/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/robotics-testing .agents/skills/robotics-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .agents/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/robotics-testing .cursor/skills/robotics-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .cursor/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/arpitg1304/robotics-agent-skills.git --path skills/robotics-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/robotics-testing .gemini/skills/robotics-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .gemini/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/robotics-testing .github/skills/robotics-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .github/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install arpitg1304/robotics-agent-skills robotics-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/arpitg1304/robotics-agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/robotics-testing .opencode/skills/robotics-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "robotics-testing" agent skill from https://github.com/arpitg1304/robotics-agent-skills/tree/main/skills/robotics-testing into .opencode/skills/robotics-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "robotics-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
robotics-testingTesting strategies, patterns, and tools for robotics software.
Robotics Testing is an agent skill from arpitg1304/robotics-agent-skills. Testing strategies, patterns, and tools for robotics software. Use this skill when writing unit tests, integration tests, simulation tests, or hardware-in-the-loop tests for robot systems. Trigger whenever the user mentions testing ROS nodes, pytest with ROS, launchtesting, simulation testing, CI/CD for robotics, test fixtures for sensors, mock hardware, deterministic replay, regression testing for robot behaviors, or validating perception/planning/control pipelines. Also covers property-based testing for…
Its SKILL.md is about 4.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing, Integration testing and Test strategy. It works with pytest. The repository describes itself as: Agent skills that make AI coding assistants write production-grade robotics software. ROS1, ROS2, design patterns, SOLID principles, and testing — for Claude Code, Cursor… The licence is Apache-2.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f9bc546. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Robotics Testing loads about 4.7k tokens when it runs. Until then it costs about 154 tokens; SKILL.md has 109 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from arpitg1304/robotics-agent-skills at commit f9bc546, republished under its Apache-2.0 licence (© arpitg1304). 109 words, ~4,685 tokens.
.claude/skills/robotics-testing/SKILL.md (or your agent's skills folder). ╱╲
╱ ╲ Field Tests
╱ ╲ (Real robot, real environment)
╱──────╲
╱ ╲ Hardware-in-the-Loop (HIL)
╱ ╲ (Real hardware, controlled environment)
╱────────────╲
╱ ╲ Simulation Tests
╱ ╲ (Full sim, realistic physics)
╱──────────────────╲
╱ ╲ Integration Tests
╱ ╲ (Multi-node, message passing)
╱────────────────────────╲
╱ ╲ Unit Tests
╱____________________________╲ (Single function/class, fast, deterministic)
MORE tests at the bottom, FEWER at the top.
Bottom = fast, cheap, deterministic. Top = slow, expensive, realistic.# test_perception_node.py
import pytest
import rclpy
from rclpy.node import Node
from sensor_msgs.msg import Image
from my_pkg.perception_node import PerceptionNode
import numpy as np
@pytest.fixture(scope='module')
def ros_context():
"""Initialize ROS2 context once per test module"""
rclpy.init()
yield
rclpy.shutdown()
@pytest.fixture
def perception_node(ros_context):
"""Create a fresh perception node for each test"""
node = PerceptionNode()
yield node
node.destroy_node()
@pytest.fixture
def test_image():
"""Generate a synthetic test image"""
msg = Image()
msg.height = 256
msg.width = 256
msg.encoding = 'rgb8'
msg.step = 256 * 3
msg.data = np.random.randint(0, 255, (256, 256, 3),
dtype=np.uint8).tobytes()
return msg
class TestPerceptionNode:
def test_initialization(self, perception_node):
"""Node should initialize with correct default parameters"""
assert perception_node.get_parameter('confidence_threshold').value == 0.7
assert perception_node.get_parameter('rate_hz').value == 30.0
def test_parameter_validation(self, perception_node):
"""Node should reject invalid parameter values"""
from rcl_interfaces.msg import SetParametersResult
result = perception_node.set_parameters([
rclpy.parameter.Parameter('confidence_threshold',
value=-0.5) # Invalid!
])
assert not result[0].successful
def test_image_callback_publishes_detections(self, perception_node, test_image):
"""Processing an image should produce detection output"""
received = []
# Create a test subscriber
sub_node = Node('test_subscriber')
sub_node.create_subscription(
DetectionArray, '/perception/detections',
lambda msg: received.append(msg), 10)
# Simulate image callback
perception_node.image_callback(test_image)
# Spin briefly to allow message propagation
rclpy.spin_once(sub_node, timeout_sec=1.0)
rclpy.spin_once(perception_node, timeout_sec=1.0)
# Verify
assert len(received) > 0
sub_node.destroy_node()
def test_empty_image_handling(self, perception_node):
"""Node should handle empty/corrupted images gracefully"""
empty_msg = Image() # No data
# Should not crash
perception_node.image_callback(empty_msg)# test_kinematics.py
import pytest
import numpy as np
from my_pkg.kinematics import (
forward_kinematics, inverse_kinematics,
quaternion_multiply, transform_point
)
class TestForwardKinematics:
@pytest.mark.parametrize("joint_angles,expected_pos", [
# Home position
(np.zeros(7), np.array([0.088, 0.0, 1.033])),
# Known calibrated pose
(np.array([0, -0.785, 0, -2.356, 0, 1.571, 0.785]),
np.array([0.307, 0.0, 0.59])),
])
def test_known_poses(self, joint_angles, expected_pos):
"""FK should match known calibrated positions"""
result = forward_kinematics(joint_angles)
np.testing.assert_allclose(result[:3], expected_pos, atol=0.01)
def test_fk_ik_roundtrip(self):
"""FK(IK(pose)) should return the original pose"""
original_pose = np.array([0.4, 0.1, 0.5, 1.0, 0.0, 0.0, 0.0])
joint_angles = inverse_kinematics(original_pose)
recovered_pose = forward_kinematics(joint_angles)
np.testing.assert_allclose(recovered_pose, original_pose, atol=1e-4)
def test_joint_limits_respected(self):
"""IK should not return angles outside joint limits"""
target = np.array([0.5, 0.2, 0.3, 1.0, 0.0, 0.0, 0.0])
joints = inverse_kinematics(target)
for i, (lo, hi) in enumerate(JOINT_LIMITS):
assert lo <= joints[i] <= hi, \
f"Joint {i}: {joints[i]} outside [{lo}, {hi}]"
class TestQuaternionMath:
def test_identity_multiply(self):
"""q * identity = q"""
q = np.array([0.5, 0.5, 0.5, 0.5])
identity = np.array([1.0, 0.0, 0.0, 0.0])
result = quaternion_multiply(q, identity)
np.testing.assert_allclose(result, q, atol=1e-10)
def test_inverse_multiply(self):
"""q * q_inv = identity"""
q = np.array([0.5, 0.5, 0.5, 0.5])
q_inv = np.array([0.5, -0.5, -0.5, -0.5])
result = quaternion_multiply(q, q_inv)
np.testing.assert_allclose(result, [1, 0, 0, 0], atol=1e-10)
@pytest.mark.parametrize("q", [
np.random.randn(4) for _ in range(20) # Random quaternions
])
def test_unit_quaternion_preserved(self, q):
"""Multiplication of unit quaternions should produce unit quaternion"""
q = q / np.linalg.norm(q) # Normalize
q2 = np.array([0.707, 0.707, 0, 0]) # 90° rotation
result = quaternion_multiply(q, q2)
assert abs(np.linalg.norm(result) - 1.0) < 1e-10from hypothesis import given, strategies as st, settings
import hypothesis.extra.numpy as hnp
class TestTrajectoryInterpolation:
@given(
start=hnp.arrays(np.float64, (7,),
elements=st.floats(min_value=-3.14, max_value=3.14)),
end=hnp.arrays(np.float64, (7,),
elements=st.floats(min_value=-3.14, max_value=3.14)),
num_steps=st.integers(min_value=2, max_value=1000),
)
@settings(max_examples=200)
def test_interpolation_properties(self, start, end, num_steps):
"""Trajectory interpolation should satisfy mathematical properties"""
traj = linear_interpolate(start, end, num_steps)
# Property 1: Correct number of steps
assert len(traj) == num_steps
# Property 2: Starts at start, ends at end
np.testing.assert_allclose(traj[0], start, atol=1e-10)
np.testing.assert_allclose(traj[-1], end, atol=1e-10)
# Property 3: Monotonic progress (each step closer to goal)
for i in range(1, len(traj)):
dist_prev = np.linalg.norm(traj[i-1] - end)
dist_curr = np.linalg.norm(traj[i] - end)
assert dist_curr <= dist_prev + 1e-10
# Property 4: No jumps exceed max step size
diffs = np.diff(traj, axis=0)
max_step = np.max(np.abs(diffs))
expected_max = np.max(np.abs(end - start)) / (num_steps - 1)
assert max_step <= expected_max + 1e-10
@given(
points=hnp.arrays(np.float64, (3,),
elements=st.floats(min_value=-10, max_value=10, allow_nan=False)),
)
def test_transform_roundtrip(self, points):
"""Transform followed by inverse transform = identity"""
T = random_transform_matrix()
T_inv = np.linalg.inv(T)
transformed = transform_point(T, points)
recovered = transform_point(T_inv, transformed)
np.testing.assert_allclose(recovered, points, atol=1e-8)# test_integration.py
import pytest
import launch_testing
from launch import LaunchDescription
from launch_ros.actions import Node
import rclpy
import unittest
@pytest.mark.launch_test
def generate_test_description():
"""Launch the nodes we want to test"""
perception_node = Node(
package='my_pkg', executable='perception_node',
parameters=[{'use_sim_time': True}],
)
planner_node = Node(
package='my_pkg', executable='planner_node',
parameters=[{'use_sim_time': True}],
)
return LaunchDescription([
perception_node,
planner_node,
launch_testing.actions.ReadyToTest(),
])
class TestPerceptionPlannerIntegration(unittest.TestCase):
@classmethod
def setUpClass(cls):
rclpy.init()
cls.node = rclpy.create_node('integration_test')
@classmethod
def tearDownClass(cls):
cls.node.destroy_node()
rclpy.shutdown()
def test_perception_publishes_to_planner(self):
"""Perception detections should reach the planner"""
# Publish a test image
pub = self.node.create_publisher(Image, '/camera/image_raw', 10)
test_img = create_test_image_with_object()
pub.publish(test_img)
# Wait for planner output
received = []
sub = self.node.create_subscription(
Path, '/planner/path',
lambda msg: received.append(msg), 10)
end_time = self.node.get_clock().now() + rclpy.duration.Duration(seconds=5)
while self.node.get_clock().now() < end_time and not received:
rclpy.spin_once(self.node, timeout_sec=0.1)
self.assertGreater(len(received), 0, "Planner should produce a path")
self.assertGreater(len(received[0].poses), 0, "Path should have poses")class MockCamera:
"""Mock camera for testing without hardware"""
def __init__(self, image_dir=None, resolution=(640, 480)):
self.resolution = resolution
self.frame_count = 0
if image_dir:
# Use pre-recorded test images
self.images = self._load_test_images(image_dir)
else:
# Generate synthetic images
self.images = None
def get_frame(self):
self.frame_count += 1
if self.images:
idx = self.frame_count % len(self.images)
return self.images[idx]
else:
return self._generate_synthetic_frame()
def _generate_synthetic_frame(self):
"""Generate a deterministic test frame with known objects"""
img = np.zeros((*self.resolution[::-1], 3), dtype=np.uint8)
# Draw a red rectangle (simulated object)
img[100:200, 150:250] = [255, 0, 0]
return img
class MockJointStatePublisher:
"""Publish deterministic joint states for testing"""
def __init__(self, node, trajectory=None):
self.pub = node.create_publisher(
JointState, '/joint_states', 10)
self.step = 0
if trajectory is not None:
self.trajectory = trajectory
else:
# Sinusoidal motion for testing
t = np.linspace(0, 2*np.pi, 100)
self.trajectory = np.column_stack([
0.1 * np.sin(t + i * 0.5) for i in range(7)
])
def publish_next(self):
msg = JointState()
msg.header.stamp = self.node.get_clock().now().to_msg()
msg.name = [f'joint_{i}' for i in range(7)]
idx = self.step % len(self.trajectory)
msg.position = self.trajectory[idx].tolist()
self.pub.publish(msg)
self.step += 1class TestTrajectoryRegression:
"""Compare planner output against known-good trajectories"""
GOLDEN_DIR = Path(__file__).parent / 'golden_trajectories'
def test_straight_line_plan(self):
start = np.array([0.3, 0.0, 0.5])
goal = np.array([0.5, 0.2, 0.3])
trajectory = planner.plan(start, goal)
golden_file = self.GOLDEN_DIR / 'straight_line.npy'
if not golden_file.exists():
# First run: save as golden
np.save(golden_file, trajectory)
pytest.skip("Golden file created — re-run to test")
golden = np.load(golden_file)
np.testing.assert_allclose(trajectory, golden, atol=1e-4,
err_msg="Trajectory regression! Planner output changed.")
def test_obstacle_avoidance_plan(self):
start = np.array([0.3, 0.0, 0.5])
goal = np.array([0.5, 0.2, 0.3])
obstacles = [Sphere(center=[0.4, 0.1, 0.4], radius=0.05)]
trajectory = planner.plan(start, goal, obstacles=obstacles)
# Verify no collisions
for point in trajectory:
for obs in obstacles:
dist = np.linalg.norm(point[:3] - obs.center)
assert dist > obs.radius, \
f"Collision at {point[:3]}, dist={dist:.4f}"class SimulationTestHarness:
"""Run behavior tests in simulation with deterministic physics"""
def __init__(self, sim_config):
self.sim = MuJoCoSimulator(sim_config)
self.sim.set_seed(42) # Deterministic physics
def test_pick_and_place(self):
"""Full pick-and-place task in simulation"""
# Setup scene
self.sim.reset()
self.sim.spawn_object('red_block', pose=[0.4, 0.1, 0.02])
# Run behavior tree
bt = create_pick_place_tree()
bt.setup(sim=self.sim)
max_steps = 1000
for step in range(max_steps):
bt.tick()
self.sim.step()
if bt.root.status == Status.SUCCESS:
break
# Verify outcome
block_pose = self.sim.get_object_pose('red_block')
target_pose = np.array([0.5, -0.1, 0.02])
assert np.linalg.norm(block_pose[:3] - target_pose) < 0.02, \
f"Block not at target: {block_pose[:3]} vs {target_pose}"
assert step < max_steps - 1, "Task did not complete in time"
def test_collision_safety(self):
"""Robot should never collide with table"""
self.sim.reset()
self.sim.spawn_object('obstacle', pose=[0.35, 0.0, 0.15])
trajectory = planner.plan_with_obstacle(
start=[0.3, -0.2, 0.3],
goal=[0.3, 0.2, 0.3])
for joints in trajectory:
self.sim.set_joint_positions(joints)
contacts = self.sim.get_contacts()
robot_contacts = [c for c in contacts
if 'robot' in c.body1 or 'robot' in c.body2]
assert len(robot_contacts) == 0, \
f"Robot collision detected: {robot_contacts}"# .github/workflows/robotics_ci.yml
name: Robotics CI
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-22.04
container:
image: ros:humble-ros-base
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
rosdep install --from-paths src --ignore-src -y
pip install pytest hypothesis numpy
- name: Build
run: |
source /opt/ros/humble/setup.bash
colcon build --packages-select my_pkg
source install/setup.bash
- name: Unit tests
run: |
source install/setup.bash
colcon test --packages-select my_pkg
colcon test-result --verbose
integration-tests:
runs-on: ubuntu-22.04
container:
image: ros:humble-ros-base
needs: unit-tests
steps:
- uses: actions/checkout@v4
- name: Build full workspace
run: |
source /opt/ros/humble/setup.bash
colcon build
- name: Integration tests
run: |
source install/setup.bash
launch_test src/my_pkg/test/test_integration.py
simulation-tests:
runs-on: ubuntu-22.04
needs: integration-tests
steps:
- uses: actions/checkout@v4
- name: Setup MuJoCo
run: pip install mujoco
- name: Simulation tests
run: pytest tests/simulation/ -v --timeout=120sleep()# BAD: Flaky, slow, non-deterministic
def test_message_received():
pub.publish(msg)
time.sleep(2.0) # Hope it arrives!
assert received
# GOOD: Event-driven waiting with timeout
def test_message_received():
pub.publish(msg)
event = threading.Event()
sub = create_sub(callback=lambda m: event.set())
assert event.wait(timeout=5.0), "Message not received within timeout"# BAD: Only test the happy path
# GOOD: Test failures explicitly
def test_planner_unreachable_goal(self):
"""Planner should return None for unreachable goals"""
result = planner.plan(start, unreachable_goal)
assert result is None
def test_perception_no_objects(self):
"""Perception should return empty list when no objects visible"""
empty_image = np.zeros((256, 256, 3), dtype=np.uint8)
detections = perception.detect(empty_image)
assert detections == []# BAD: Random seed changes between runs
trajectory = planner.plan(start, goal) # Uses random sampling internally
# GOOD: Fix random seed for reproducibility
def test_rrt_planner(self):
np.random.seed(42)
trajectory = planner.plan(start, goal, seed=42)
assert len(trajectory) > 0© arpitg1304, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/robotics-testing of arpitg1304/robotics-agent-skills.
Open the folder on GitHubat commit f9bc546
Robotics Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Robotics Testing this skillarpitg1304/robotics-agent-skills | 368 | — | ~4.7k | Automated safety check: Pass | Apache-2.0 | |
| Megatron Core Testing GuideNVIDIA/Megatron-LM | 18k | 1 repos | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Designing TestsCloudAI-X/claude-workflow-v2 | 1.4k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Sitl TestingArduPilot/MethodicConfigurator | 163 | — | ~1.7k | Automated safety check: Pass | GPL-3.0 | |
| Python Testing Strategiesc0x12c/ai-toolkit | 106 | — | ~747 | Automated safety check: Pass | None | |
| Specx Testsmaksimzayats/specx | 202 | — | ~1.9k | Automated safety check: Pass | MIT |
NVIDIA/Megatron-LM
Guide to the Megatron-LM test system: layout, recipe YAML, running and adding unit and functional tests, golden values, marker filters and CI parity.
CloudAI-X/claude-workflow-v2
Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.
ArduPilot/MethodicConfigurator
Set up and run SITL integration tests for backendflightcontroller.py.
c0x12c/ai-toolkit
Testing patterns for FastAPI with pytest-asyncio, httpx AsyncClient, fixtures, and test data factories.
maksimzayats/specx
Add or refine tests for specx Python services. An agent skill from maksimzayats/specx.
thedivergentai/GD-Agentic-Skills
Expert testing decision trees for GdUnit4: unit vs scene vs CI gates, headless runners, snapshots, and mock networks.
arpitg1304/robotics-agent-skills
Best practices, design patterns, and common pitfalls for ROS1 (Robot Operating System 1) development.
arpitg1304/robotics-agent-skills
Best practices for Docker-based ROS2 development including multi-stage Dockerfiles, docker-compose for multi-container robotic systems, DDS discovery across containers, GPU passthrough for…
arpitg1304/robotics-agent-skills
Bringing up a complete ROS2 system on a robot's onboard computer: systemd services, launch file composition, ordered startup, and production monitoring.
arpitg1304/robotics-agent-skills
Comprehensive best practices for robot perception systems covering cameras, LiDARs, depth sensors, IMUs, and multi-sensor setups.
arpitg1304/robotics-agent-skills
Architecture patterns, design principles, and proven recipes for building robust robotics software.
arpitg1304/robotics-agent-skills
Foundational software design principles applied specifically to robotics module development.
Works with
Categories
Testing strategies, patterns, and tools for robotics software. Robotics Testing is an agent skill from arpitg1304/robotics-agent-skills. Testing strategies, patterns, and tools for robotics software.
Robotics Testing fits situations like: writing unit tests; integration tests; simulation tests; hardware-in-the-loop tests for robot systems.
Run `npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a claude-code`. Or copy the skill folder (skills/robotics-testing in arpitg1304/robotics-agent-skills) into .claude/skills/robotics-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a codex`. Or copy the skill folder (skills/robotics-testing in arpitg1304/robotics-agent-skills) into .agents/skills/robotics-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add arpitg1304/robotics-agent-skills --skill robotics-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/robotics-testing, .gemini/skills/robotics-testing, .github/skills/robotics-testing and .opencode/skills/robotics-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Robotics Testing is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Robotics Testing is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.7k tokens (SKILL.md is roughly 19k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Robotics Testing: Megatron Core Testing Guide (NVIDIA/Megatron-LM, 18k stars), Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars), Sitl Testing (ArduPilot/MethodicConfigurator, 163 stars) and Python Testing Strategies (c0x12c/ai-toolkit, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
arpitg1304 (a GitHub user) maintains it in arpitg1304/robotics-agent-skills, which has 368 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on August 12, 2026.
Source: arpitg1304/robotics-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.