Skip to content

Add support for test coverage reports#71

Open
igniteflow wants to merge 2 commits intooctoenergy:mainfrom
igniteflow:add-coverage
Open

Add support for test coverage reports#71
igniteflow wants to merge 2 commits intooctoenergy:mainfrom
igniteflow:add-coverage

Conversation

@igniteflow
Copy link
Copy Markdown

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.

1 participant