Evalai: Determine why code coverage is low

Created on 22 Jan 2019  路  9Comments  路  Source: Cloud-CV/EvalAI

Current Behaviour

The code coverage is 72% which is quite low.

Expected Behaviour

The code coverage should be > 90%.

Deliverable

  • [ ] Figure out the pieces of code for which the test cases are missing.
    (A link to google doc highlighting those sections in the comments would suffice for it.)
GSOC-2019 critical easy_to_fix enhancement good first issue

All 9 comments

I would like to work on this one. @RishabhJain2018

Sure! You can take this up.

@RishabhJain2018 @KhalidRmb #1997 is related to this issue.

Thanks, @vkartik97 for mentioning it.
@KhalidRmb Please do take a note of it in the doc you are preparing.

@RishabhJain2018 Link to Google doc with a checklist of all the relevant unit tests to be written: https://docs.google.com/document/d/1IF3APjd93hUeov4KKRGDupMlcjpLO-MYo3_lEP8e42k/edit?usp=sharing

@RishabhJain2018 ..any comments/changes required to the doc?

@KhalidRmb @RishabhJain2018 I will create an issue and write unit tests for /apps/base/utils.py because #2054 couldn't pass the coverage tests.

@KhalidRmb Added unit tests for both functions decode_data and encode_data in /apps/base/utils.py #2107

scripts/workers/submission_worker.py is a major area where Test coverage can be improved @KhalidRmb . I guess python unit tests can do the job for submission worker. Yet we also need to think where Integration tests are missing in apps to increase coverage

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deshraj picture deshraj  路  5Comments

HargovindArora picture HargovindArora  路  3Comments

Arun-Jain picture Arun-Jain  路  6Comments

vkartik97 picture vkartik97  路  4Comments

Jonathan-Livingston-Seagull picture Jonathan-Livingston-Seagull  路  5Comments