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 unit tests for com.netflix.discovery.util.EurekaEntityFunctions #1214

Merged
merged 3 commits into from
Jul 8, 2019

Conversation

EricHetti
Copy link
Contributor

I've analysed your codebase and noticed that com.netflix.discovery.util.EurekaEntityFunctions is not fully tested.
I've written some tests for the methods in this class with the help of Diffblue Cover.

Hopefully, these tests will help you detect any regressions caused by future code changes. If you would find it useful to have additional tests written for this repository, I would be more than happy to look at other classes that you consider important.

@troshko111
Copy link
Contributor

Thanks for the PR!

@troshko111
Copy link
Contributor

btw, if you're looking for test-related tasks, fixing the flakiness would be the top one probably.

@EricHetti
Copy link
Contributor Author

btw, if you're looking for test-related tasks, fixing the flakiness would be the top one probably.

Do you have any specific class in mind which you would like me to have a look at? :)

Copy link
Contributor

@troshko111 troshko111 left a comment

Choose a reason for hiding this comment

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

Most comments are around code duplication.

@troshko111
Copy link
Contributor

Do you have any specific class in mind which you would like me to have a look at? :)

no not really, just run the tests multiple times and see if you get any intermittent failures, the ones failing would be flaky and something we'd appreciate to have fixed.

These tests were written using Diffblue Cover.
@EricHetti
Copy link
Contributor Author

Hi @troshko111 just following up and wondering if you would like me to make any changes to the PR?

@troshko111
Copy link
Contributor

Sorry did not realize this got updated, for the future can you please not rebase PR iterations? It makes the review very hard (every iteration has to be reviewed again as a completely new change without any intermediate diffs).

These tests were written using Diffblue Cover.
Copy link
Contributor

@troshko111 troshko111 left a comment

Choose a reason for hiding this comment

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

LGTM overall, a couple of nits. Thanks again!

These tests were written using Diffblue Cover.
@troshko111 troshko111 merged commit 9fa8437 into Netflix:master Jul 8, 2019
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.

None yet

2 participants