Skip to content
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

ADD Generate Test Coverage Report for the API server #330

Merged
merged 2 commits into from
Jan 3, 2022

Conversation

PIG208
Copy link
Contributor

@PIG208 PIG208 commented Jan 2, 2022

This allows us to run tests/test.sh to generate a test coverage report using coverage.py with pytest.

The report can be generated with make coverage under api.

An example of the report:

Name                                        Stmts   Miss  Cover   Missing
-------------------------------------------------------------------------
anubis/__init__.py                              0      0   100%
anubis/app.py                                  32     28    12%   11-22, 34-52, 64-77
anubis/views/super/__init__.py                  7      7     0%   1-13
anubis/views/super/config.py                   29     29     0%   1-73
anubis/views/super/ide.py                      64     64     0%   1-114
anubis/views/super/playgrounds.py              37     37     0%   1-88

......

jobs/autograde_recalculate.py                  21     21     0%   1-60
jobs/bot.py                                   106    106     0%   1-307
jobs/daily_cleanup.py                          36     36     0%   1-112
jobs/poller.py                                 16     16     0%   1-40
jobs/reaper.py                                 55     55     0%   1-167
jobs/reporter.py                                7      7     0%   1-15
jobs/visuals.py                                17     17     0%   1-34
-------------------------------------------------------------------------
TOTAL                                        5073   4503    11%

@wabscale
Copy link
Collaborator

wabscale commented Jan 3, 2022

Good stuff

@wabscale wabscale merged commit c92a846 into AnubisLMS:master Jan 3, 2022
@PIG208 PIG208 deleted the coverage branch January 3, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants