Open Suryansh5545 opened 1 year ago
Hey @Suryansh5545, I would like to contribute towards better test coverage. And also I believe that's a good starting point to contribute =)
I was thinking about starting to write some unit tests for Jobs:utils
.
Specially is_valid_url
, sounds like a pretty much standalone method and a good starting point. Do you have any other suggestions on where to start?
I would appreciate any guidance on how to set up the dev environment for this (maybe I missed it in the docs).
I noticed that there isn't any test for Jobs:utils
, so I also would appreciate any other information to get started, like how to properly structure the test suite and libs to use.
We have a Current cove coverage of around 67% which is quite low. we should aim to increase the coverage upto 90%. Below are the specfic functions and areas of code which remain uncovered and are causing low coverage.
Base: utils.py
Challenge: aws_utils.py
admin.py
admin_filters.py
Jobs: utils
Jobs: aws_utils.py
tasks.py
admin.py
Additionally, I've noticed that some files under the "Scripts/worker" directory have a code coverage of 0%. It would be beneficial to address this and include appropriate tests for these files as well:
Scripts/worker - remote_submission_worker.py
Scripts/worker - submission_worker.py
Scripts/worker - worker_utils.py: (0% coverage)
Scripts/worker - rl_submission_worker.py: (0% coverage)