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 tests to the params_file parameter in test_spawner_unspawner.cpp #1702

Closed
saikishor opened this issue Aug 20, 2024 · 4 comments
Closed

Comments

@saikishor
Copy link
Member

There was a typo observed after using #1661 and it seems like there is no proper tests with test_controller that uses the parameters from param_file, that's the reason it is not detected in the first place. It is fixed in the PR: #1701

We need to add some tests here to avoid such cases in future

@SantoshGovindaraj
Copy link
Contributor

Hello @saikishor , I would like to contribute to this issue as my first step in open-source. Here is my plan for the tests:

  • Add test cases for passing a valid params_file and verifying that the controller is loaded with the expected outcomes.
  • Test with an invalid or malformed params_file to ensure proper error handling.

Let me know if there are additional test cases you would like me to include!

@saikishor
Copy link
Member Author

Hello @saikishor , I would like to contribute to this issue as my first step in open-source. Here is my plan for the tests:

  • Add test cases for passing a valid params_file and verifying that the controller is loaded with the expected outcomes.
  • Test with an invalid or malformed params_file to ensure proper error handling.

Let me know if there are additional test cases you would like me to include!

Hello @SantoshGovindaraj!

Thank you for volunteering for this. I just gave a thought about this and it is way easier than I initially thought.

What you can easily do is, in the test_spawner_unspawner.cpp you have the cm object. You can check the parameters <controller_name>.params_file parameter and see if it is the same as the unknown params file path in some of the tests and that should already take care of the required tests.

Right now, the test_controller plugin doesn't have many parameters to test with a valid and invalid set, so the above option is better and easier.

I hope this helps. Thanks again.

@SantoshGovindaraj
Copy link
Contributor

Hi @saikishor ,
I realised that I missed sending you a review request. Unfortunately, I am unable to undo the request made by GitHub Action bot. Is there a way for me to send you a review request again?

Thank you!

@saikishor
Copy link
Member Author

Fixed with #1754

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

No branches or pull requests

2 participants