-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ Is3626/api-server test tools and coverage #4149
♻️ Is3626/api-server test tools and coverage #4149
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4149 +/- ##
=========================================
- Coverage 85.4% 78.0% -7.5%
=========================================
Files 955 700 -255
Lines 41398 31476 -9922
Branches 952 219 -733
=========================================
- Hits 35385 24568 -10817
- Misses 5797 6849 +1052
+ Partials 216 59 -157
Flags with carried forward coverage won't be shown. Click here to find out more.
|
cabd9b9
to
783159b
Compare
855aa56
to
3538da5
Compare
e0ea34c
to
c879e8e
Compare
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.
looking promising. I will need you to show how that works.
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!
One question: Will any of the responses you capture be added as a test and validated against in the future? I have not seen them being added here.
services/api-server/src/simcore_service_api_server/core/settings.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/http_calls_capture.py
Outdated
Show resolved
Hide resolved
Yes, that is what I meant in the description by |
Code Climate has analyzed commit 7aa068e and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
This PR focus on enhancing test coverage of the
api-server
before adding extra functionalityrespx
fixtures created (and disabled) in ✨ Is3940/public api can run a job on a given cluster (part 1) #3958api-server
to any of the backend services.utils/http_calls_capture.py
andHttpxClientWithCaptures
inutils/client_base.py
settings
,_meta
,plugins
API_SERVER_DEV_HTTP_CALLS_LOGS_PATH
env variable is only for local development and should never be set elsewhere (a validation check is in the code as precaution )Related issue/s
How to test
cd api-server make install-dev make test-dev