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

[ResourceManager] adds test for uninitialized hardware #1243

Conversation

taDachs
Copy link
Contributor

@taDachs taDachs commented Dec 21, 2023

This PR adds two tests for uninitialized hardware as mentioned in #1078 . One that expect an exception being thrown when loading a urdf with validation and one for checking that no state or command interfaces have been added (without validation).
To make hardware "uninitilizable" I used a custom actuator, sensor and system.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e92b6c2) 47.82% compared to head (93972a7) 48.05%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1243      +/-   ##
==========================================
+ Coverage   47.82%   48.05%   +0.23%     
==========================================
  Files          40       40              
  Lines        3448     3448              
  Branches     1869     1869              
==========================================
+ Hits         1649     1657       +8     
+ Misses        456      445      -11     
- Partials     1343     1346       +3     
Flag Coverage Δ
unittests 48.05% <ø> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 3 files with indirect coverage changes

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

thank you!

@bmagyar bmagyar merged commit 64c9e2a into ros-controls:master Jan 4, 2024
14 checks passed
mergify bot pushed a commit that referenced this pull request Jan 4, 2024
@taDachs taDachs deleted the issue-1078-add-test-when-hardware-components-can-not-be-initialized branch January 4, 2024 15:59
Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

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

Cool thanks!

@destogl
Copy link
Member

destogl commented Jan 8, 2024

@bmagyar no humble backport?

@destogl
Copy link
Member

destogl commented Jan 8, 2024

@Mergifyio backport humble

Copy link
Contributor

mergify bot commented Jan 8, 2024

backport humble

✅ Backports have been created

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