{"id":42847732,"url":"https://github.com/abaeyens/ros2-integration-testing-examples","last_synced_at":"2026-01-30T11:59:34.918Z","repository":{"id":263269303,"uuid":"871964289","full_name":"abaeyens/ros2-integration-testing-examples","owner":"abaeyens","description":"ROS 2 integration and unit testing examples featuring colcon, launch_testing and ament_cmake_ros","archived":false,"fork":false,"pushed_at":"2025-01-26T10:54:13.000Z","size":9,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T11:25:47.621Z","etag":null,"topics":["ament","ament-cmake-ros","cmake","colcon","example","integration-testing","launch-testing","ros2","tutorial","xunit"],"latest_commit_sha":null,"homepage":"https://arnebaeyens.com/blog/2024/ros2-integration-testing/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abaeyens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-13T12:45:16.000Z","updated_at":"2025-01-26T10:54:17.000Z","dependencies_parsed_at":"2024-11-17T13:28:52.514Z","dependency_job_id":"01f92b9d-aadf-431f-9662-552ed15bda91","html_url":"https://github.com/abaeyens/ros2-integration-testing-examples","commit_stats":null,"previous_names":["abaeyens/ros2-integration-testing-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abaeyens/ros2-integration-testing-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaeyens%2Fros2-integration-testing-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaeyens%2Fros2-integration-testing-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaeyens%2Fros2-integration-testing-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaeyens%2Fros2-integration-testing-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abaeyens","download_url":"https://codeload.github.com/abaeyens/ros2-integration-testing-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaeyens%2Fros2-integration-testing-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T11:55:24.701Z","status":"ssl_error","status_checked_at":"2026-01-30T11:54:13.194Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ament","ament-cmake-ros","cmake","colcon","example","integration-testing","launch-testing","ros2","tutorial","xunit"],"created_at":"2026-01-30T11:59:34.463Z","updated_at":"2026-01-30T11:59:34.906Z","avatar_url":"https://github.com/abaeyens.png","language":"Python","readme":"# ROS 2 Integration and Unit Testing Examples\nAn example package `app` that showcases\nintegration testing with `launch_testing` and `ament_cmake_ros`\nand unit testing with `pytest` and `gtest`.\n\nBoth integration and unit tests write out **complete XUnit reports**,\nallowing to list the results of all individual tests together\n(e.g. to create a report as part of a CI/CD pipeline).\nAlso, each integration test automatically receives a unique `ROS_DOMAIN_ID`\nto avoid crosstalk between simultaneously running tests.\n\nA ROS 2 Jazzy Docker setup is included to get started quickly.\nThis code probably also works on Humble and Iron.\nPlease see the instructions further on for creating the `.env` file.\n\nFor more documentation, please have a look at the code files\nin the `app` package such as\n[test_integration.py](src/app/test/test_integration.py)\nand the [CMakeLists.txt](src/app/CMakeLists.txt)\n\n\n## Get up and running\n```bash\ngit clone git@github.com:abaeyens/ros2-integration-testing-examples.git\ncd ros2-integration-testing-examples\n\necho -e USER_ID=$(id -u $USER)\\\\nGROUP_ID=$(id -g $USER) \u003e\u003e .env\ndocker compose build --pull\ndocker compose run --rm app bash\n\ncolcon build\nsource install/setup.bash\ncolcon test --event-handlers console_direct+\ncolcon test-result --all\nxunit-viewer -r build/app/test_results -c\n```\n\n## Notes\n- The tests include launching a turtlesim GUI,\n  hence the tests may fail on a headless system.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaeyens%2Fros2-integration-testing-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabaeyens%2Fros2-integration-testing-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaeyens%2Fros2-integration-testing-examples/lists"}