-
Notifications
You must be signed in to change notification settings - Fork 33
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
use FakeClient as backend for InformersService in unit tests #466
use FakeClient as backend for InformersService in unit tests #466
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #466 +/- ##
==========================================
- Coverage 81.17% 81.14% -0.04%
==========================================
Files 42 42
Lines 2630 2630
==========================================
- Hits 2135 2134 -1
- Misses 407 408 +1
Partials 88 88
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job, the code looks simpler 👍
I have left some very minor comments , only aesthetic stuff so feel free to ignore those.
Quality Gate failedFailed conditions |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, MatousJobanek, mfrancisc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c828088
into
codeready-toolchain:master
First PR to migrate unit tests to use FakeClient instead of the mocks. I was able to isolate the changes for the InformerService only.
The main goal of this PR is to start using the FakeClient in unit tests, its purpose is not to improve the unit tests, or increase the coverage. This can (and should) be done later.
KUBESAW-193