Skip to content

test coverage gaps #40

@kevinsa5

Description

@kevinsa5

Test coverage is decent but there are some gaps:

Name                                    Stmts   Miss  Cover
-----------------------------------------------------------
gemlog/__init__.py                          8      0   100%
gemlog/core.py                            797    157    80%
gemlog/gem_cat.py                         135     71    47%
gemlog/gem_network.py                     235     47    80%
gemlog/gemconvert.py                      138     76    45%
gemlog/gemlog_aux.py                      240    190    21%
gemlog/huddle_test.py                     548    127    77%
gemlog/version.py                           1      0   100%
tests/test_brief_data_gaps.py              29      2    93%
tests/test_integration_ReadGem.py          62      0   100%
tests/test_integration_demo.py             39      0   100%
tests/test_integration_missing_gps.py      41      0   100%
tests/test_noise_response.py               17      0   100%
tests/test_unit_gem_network.py             22      0   100%
tests/test_unit_read_functions.py          93      4    96%
tests/test_verify_huddle_test.py           16      0   100%
-----------------------------------------------------------
TOTAL                                    2421    674    72%

The above summary was generated with coverage with something like:

$ pip install pytest
$ coverage run -m pytest
$ coverage report

You can generate a detailed html report to show exactly what lines are and aren't covered with coverage html. This shows that some of the uncovered lines are things like raising exceptions, which are probably not a big deal to not exercise in the test suite, but some of them are more complex chunks of code that might warrant a new test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions