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

Add test coverage for params_file parameter in spawner/unspawner tests #1754

Merged

Conversation

SantoshGovindaraj
Copy link
Contributor

Overview

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. Please run pre-commit locally to satisfy the linters.

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.76%. Comparing base (eb4c19d) to head (094c1c2).
Report is 25 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1754      +/-   ##
==========================================
- Coverage   86.77%   86.76%   -0.02%     
==========================================
  Files         116      116              
  Lines       10703    10716      +13     
  Branches      981      981              
==========================================
+ Hits         9288     9298      +10     
- Misses       1062     1064       +2     
- Partials      353      354       +1     
Flag Coverage Δ
unittests 86.76% <100.00%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
controller_manager/test/test_spawner_unspawner.cpp 99.19% <100.00%> (+0.04%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

Perfect. This should do the proper check.

As @christophfroehlich pointed out, please fix the pre-commit and push it

@SantoshGovindaraj
Copy link
Contributor Author

Thanks @saikishor and @christophfroehlich

I have fixed the changes as mentioned.

@saikishor
Copy link
Member

Thanks @saikishor and @christophfroehlich

I have fixed the changes as mentioned.

I'm waiting for @christophfroehlich or other maintainers to trigger the CI

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Thanks. I haven't checked if the assertion was added to every test, but it seems to be fine.

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

LGTM

@SantoshGovindaraj
Copy link
Contributor Author

Thanks @saikishor and @christophfroehlich for prompt replies.
Please feel free to let me know if any further changes required, I can amend the changes.

@bmagyar bmagyar merged commit 84e85f9 into ros-controls:master Sep 17, 2024
19 checks passed
@saikishor saikishor added backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron. labels Nov 3, 2024
mergify bot pushed a commit that referenced this pull request Nov 3, 2024
…sts (#1754)

(cherry picked from commit 84e85f9)

# Conflicts:
#	controller_manager/test/test_spawner_unspawner.cpp
mergify bot pushed a commit that referenced this pull request Nov 3, 2024
…sts (#1754)

(cherry picked from commit 84e85f9)

# Conflicts:
#	controller_manager/test/test_spawner_unspawner.cpp
saikishor pushed a commit that referenced this pull request Nov 3, 2024
…sts (#1754) (#1838)

Co-authored-by: Santosh Govindaraj <75157452+SantoshGovindaraj@users.noreply.github.com>
saikishor added a commit that referenced this pull request Nov 3, 2024
…sts (backport #1754) (#1839)

* Add test coverage for `params_file` parameter in spawner/unspawner tests (#1754)

* pre-commit changes

---------

Co-authored-by: Santosh Govindaraj <75157452+SantoshGovindaraj@users.noreply.github.com>
Co-authored-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron This label should be used by maintaines only! Label triggers PR backport to ROS2 Iron.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants