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 support for test coverage reports #71

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

igniteflow
Copy link

Adds make command to generate a test coverage report. Example below.

> pytest --cov=xocto

Name                          Stmts   Miss  Cover
-------------------------------------------------
xocto/__init__.py                 1      0   100%
xocto/events/__init__.py          2      0   100%
xocto/events/core.py             37     18    51%
xocto/events/utils.py            10      0   100%
xocto/exceptions.py               1      0   100%
xocto/health.py                  15      5    67%
xocto/localtime.py              236     37    84%
xocto/numbers.py                 39      6    85%
xocto/pact_testing.py            36     36     0%
xocto/ranges.py                 299     47    84%
xocto/settlement_periods.py      58      7    88%
xocto/storage/__init__.py         0      0   100%
xocto/storage/files.py           75     17    77%
xocto/storage/s3_select.py       59      3    95%
xocto/storage/storage.py        704    219    69%
xocto/tracing.py                 16     16     0%
xocto/types.py                   24      5    79%
-------------------------------------------------
TOTAL                          1612    416    74%

Adds makefile command coverage

make coverage

> pytest --cov=xocto

Name                          Stmts   Miss  Cover
-------------------------------------------------
xocto/__init__.py                 1      0   100%
xocto/events/__init__.py          2      0   100%
xocto/events/core.py             37     18    51%
xocto/events/utils.py            10      0   100%
xocto/exceptions.py               1      0   100%
xocto/health.py                  15      5    67%
xocto/localtime.py              236     37    84%
xocto/numbers.py                 39      6    85%
xocto/pact_testing.py            36     36     0%
xocto/ranges.py                 299     47    84%
xocto/settlement_periods.py      58      7    88%
xocto/storage/__init__.py         0      0   100%
xocto/storage/files.py           75     17    77%
xocto/storage/s3_select.py       59      3    95%
xocto/storage/storage.py        704    219    69%
xocto/tracing.py                 16     16     0%
xocto/types.py                   24      5    79%
-------------------------------------------------
TOTAL                          1612    416    74%

Adds `makefile` command `coverage`
@igniteflow igniteflow changed the title Adds support for test coverage reports Add support for test coverage reports May 15, 2023
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

1 participant