# Ros2\_test\_compose: a YAML-to-pytest generator for ROS2 integration testing

**URL:** <https://discourse.openrobotics.org/t/ros2-test-compose-a-yaml-to-pytest-generator-for-ros2-integration-testing/57280>\
**Category:** Projects\
**Tags:** pytest, test, testing\
**Created:** [August 10, 2026, 3:46pm UTC](https://discourse.openrobotics.org/t/ros2-test-compose-a-yaml-to-pytest-generator-for-ros2-integration-testing/57280 "2026-08-10T15:46:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willore](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@Willore](https://discourse.openrobotics.org/u/Willore)\
**Post date:** [August 10, 2026, 3:46pm UTC](https://discourse.openrobotics.org/t/ros2-test-compose-a-yaml-to-pytest-generator-for-ros2-integration-testing/57280/1 "2026-08-10T15:46:54Z")

</div>

Hi everyone,

I’m a PhD student, and after a few years my codebase has grown quite a bit, spread across different git repos, Docker containers, and machines. I knew it would be good to add some tests to avoid regressions and losing work or features. However, writing unit tests alone as a student would probably cost me another year of my PhD.

So instead I went for integration tests, which are easier to write in a ROS environment and make more sense for a pipeline where the internal functions keep changing but the overall behavior should stay stable.

I know I could just write these with pytest directly, but that felt repetitive too, so I ended up building a package that generates pytest/launch\_test suites from YAML files instead.

This package differs from [ros2-easy-test](https://github.com/felixdivo/ros2-easy-test/) in that you only write a description of the test, no Python code at all, which makes it much faster to write and modify tests.

I hope this package can be useful to some of you.

> **[GitHub - will-44/ros2\_test\_compose: a ros2 package to generate integration test from...](https://github.com/will-44/ros2_test_compose)**
>
> a ros2 package to generate integration test from yaml file
