What problem does it solve? Testing ROS2 robotics applications is difficult because nodes depend on the ROS runtime, making it hard to isolate business logic and verify behavior across the full stack. This Skill provides a structured test pyramid and concrete patterns for testing ROS2 code that follows Clean Architecture. ## Core Features & Use Cases - Layered Test Pyramid: Organizes tests into unit (domain/application logic), integration (node/component), and E2E (launch tests) tiers with a clear directory structure. - Python Testing with pytest: Provides fixtures for managing rclpy init/shutdown lifecycle and patterns for node-level integration tests using publishers and subscribers. - C++ Testing with GTest/GMock: Demonstrates mocking repository interfaces for domain use cases and spinning up real nodes for component tests. - Launch-Based System Tests: Shows how to run GTest executables inside launch files with launch_testing for full system verification. - Use Case: When building a robot control package, use this Skill to write pure unit tests for your controller logic with mocked repositories, then add node integration tests and a launch test that boots the real system. ## Quick Start Ask the AI to generate a pytest integration test for a ROS2 sensor node following the Clean Architecture test pyramid.