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

[Improvement] HiveCatalogOperations.java has no unit tests/code coverage #2185

Open
justinmclean opened this issue Feb 13, 2024 · 8 comments
Labels
good first issue Good for newcomers improvement Improvements on everything

Comments

@justinmclean
Copy link
Member

What would you like to be improved?

HiveCatalogOperations.java has no unit tests/code coverage

How should we improve?

Write unit tests to improve code coverage.

@justinmclean justinmclean added good first issue Good for newcomers improvement Improvements on everything labels Feb 13, 2024
@ajayl83
Copy link
Contributor

ajayl83 commented Mar 16, 2024

@justinmclean i am picking up this one

@mchades
Copy link
Contributor

mchades commented Mar 16, 2024

How did you discover this issue? I noticed that the code coverage report bot on GitHub is no longer working. Can you please help to address this issue first?

@justinmclean
Copy link
Member Author

I just looked at the code coverage report locally.

@ajayl83
Copy link
Contributor

ajayl83 commented Mar 17, 2024

@justinmclean i need bit help on this one, specially testing the private methods... i need to understand specially how does the hadoopConf is created.
Screenshot 2024-03-17 at 15 51 24

@ajayl83
Copy link
Contributor

ajayl83 commented Mar 19, 2024

@justinmclean can you help me with this? how can i mock or add correct hadoopconf for the test?

@justinmclean
Copy link
Member Author

I would test this via mocks. If that is too difficult, either try to test methods that call these private functions or change the code so it is more testable.

@ajayl83
Copy link
Contributor

ajayl83 commented Mar 19, 2024

@justinmclean no need to mock, there is existing test which can be extended with correct conf properties to test the private methods.

@mchades
Copy link
Contributor

mchades commented Mar 20, 2024

Can we fix the code coverage report bot on GitHub first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improvement Improvements on everything
Projects
None yet
Development

No branches or pull requests

3 participants