The Wayback Machine - https://web.archive.org/web/20200805200948/https://github.com/TheAlgorithms/Java/issues/1368
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

Coverage Testing #1368

Open
rjtmahinay opened this issue Jul 24, 2020 · 2 comments
Open

Coverage Testing #1368

rjtmahinay opened this issue Jul 24, 2020 · 2 comments

Comments

@rjtmahinay
Copy link

@rjtmahinay rjtmahinay commented Jul 24, 2020

In Implementing a new feature/new algorithms, should the coverage testing way beyond 90% or near 100%?

Any feedback would be a great help.

@pmolchanov2002
Copy link

@pmolchanov2002 pmolchanov2002 commented Jul 30, 2020

Coverage testing is a safety net of your application.

Any changes in the underlining libraries or your own classes should be captured by the unit tests.

It doesn't make sense to cover getters/setters as their implementation is rarely changed. Not covering getters/setters may significantly low your unit-test coverage. I don't think it's a problem.

@rjtmahinay
Copy link
Author

@rjtmahinay rjtmahinay commented Jul 31, 2020

@pmolchanov2002 You're right. But the question is the % of the coverage testing since there is none in the repo documentation (README.md) that states how many % must be covered by the coverage testing.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.