Add support for test coverage reports #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
commandcoverage
make coverage