Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support launch_ros test runner in pytest #54

Merged
merged 7 commits into from
Aug 23, 2019

Conversation

hidmic
Copy link
Contributor

@hidmic hidmic commented Aug 16, 2019

This pull request customizes launch tests collection via pytest to make use of its own LaunchTestRunner whenever a generate_test_description is found and it carries a rostest marker.

Connected to ros2/launch#312.

hidmic added 2 commits August 15, 2019 17:58
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I commented in ros2/launch#312, I don't fully understand pytest plugins. But if it works, I'm ok with the changes.

launch_testing_ros/test/examples/README.md Outdated Show resolved Hide resolved
hidmic added 5 commits August 21, 2019 12:35
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Contributor Author

hidmic commented Aug 23, 2019

All green! Going in.

@hidmic hidmic merged commit 413ad50 into master Aug 23, 2019
@delete-merged-branch delete-merged-branch bot deleted the hidmic/launch-tests-in-python branch August 23, 2019 16:24
```

This test launches the talker and listener example nodes from demo\_nodes\_py and interacts
with them via their ROS interfaces. Remapping rules are used so that one of the tests can sit in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New sentence should start on new line.

Same below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. It predates the PR but you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants