-
Notifications
You must be signed in to change notification settings - Fork 38
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
chore: split controllers to separate packages + cover them with unit tests #404
chore: split controllers to separate packages + cover them with unit tests #404
Conversation
Codecov Report
@@ Coverage Diff @@
## main #404 +/- ##
==========================================
+ Coverage 71.09% 78.12% +7.03%
==========================================
Files 11 12 +1
Lines 851 855 +4
==========================================
+ Hits 605 668 +63
+ Misses 217 153 -64
- Partials 29 34 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
d4b9a68
to
77fce00
Compare
Can you tell us why this is a good idea perhaps? I've not touched this code in a few months and the delta seems large. |
Hello, Also this PR converting tests from ginkgo test framework to standard unit-test approach, so it's less flaky, as we experienced some problems with this approach in the past. Additionally more unit tests were added for api/controllers to increase the code coverage. |
This PR is going to be split into 2 due to the size |
1d775c4
to
8a1e2db
Compare
Split of the PR completed, the follow-up PR with additional refactoring and unit tests will follow up
Another PR regarding adding unit tests for api packages will come after this will get merged |
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.
I like the splitting of the controllers package, nice
Thank you! |
I'll give this a thorough review tomorrow! |
Thank you! |
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.
Approved with some minor comments, questions.
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
50f1cf3
to
2ea30e6
Compare
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
508ad66
to
155c5bb
Compare
This PR
Related Issues
Fixes #393