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

test coverage gaps #40

Open
kevinsa5 opened this issue Nov 20, 2022 · 0 comments
Open

test coverage gaps #40

kevinsa5 opened this issue Nov 20, 2022 · 0 comments

Comments

@kevinsa5
Copy link
Contributor

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.

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

No branches or pull requests

1 participant