Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@thuydotm
Copy link
Contributor

Use Codecov to measure the percentage of code covered by the test suite

@thuydotm thuydotm merged commit d858275 into master Feb 21, 2022
@ianthomas23
Copy link
Contributor

This is really useful. Running pytest --cov=./ on my dev system with cuda and cupy installed I get

----------- coverage: platform linux, python 3.9.7-final-0 -----------
Name                                    Stmts   Miss  Cover
-----------------------------------------------------------
setup.py                                   22     22     0%
test_examples_cli.py                        9      3    67%
xrspatial/__init__.py                      44      8    82%
xrspatial/__main__.py                      14     12    14%
xrspatial/analytics.py                     12      1    92%
xrspatial/aspect.py                        90     54    40%
xrspatial/bump.py                          35     15    57%
xrspatial/classify.py                     281    104    63%
xrspatial/convolution.py                  142     58    59%
xrspatial/curvature.py                     64     21    67%
xrspatial/datasets/__init__.py             37     17    54%
xrspatial/esri.py                          41     41     0%
xrspatial/experimental/__init__.py          1      0   100%
xrspatial/experimental/polygonize.py      261    176    33%
xrspatial/focal.py                        270    106    61%
xrspatial/gpu_rtx/__init__.py               7      2    71%
xrspatial/gpu_rtx/cuda_utils.py            29      9    69%
xrspatial/gpu_rtx/hillshade.py            114    114     0%
xrspatial/gpu_rtx/mesh_utils.py           116     76    34%
xrspatial/gpu_rtx/viewshed.py             132     65    51%
xrspatial/hillshade.py                     74     19    74%
xrspatial/local.py                        285      2    99%
xrspatial/multispectral.py                391    162    59%
xrspatial/pathfinding.py                  163     99    39%
xrspatial/perlin.py                       116     38    67%
xrspatial/proximity.py                    249    175    30%
xrspatial/slope.py                         81     39    52%
xrspatial/terrain.py                      104      5    95%
xrspatial/tests/__init__.py                 0      0   100%
xrspatial/tests/conftest.py                 8      0   100%
xrspatial/tests/general_checks.py          60      6    90%
xrspatial/tests/test_analytics.py          18      0   100%
xrspatial/tests/test_aspect.py             48      0   100%
xrspatial/tests/test_bump.py                4      0   100%
xrspatial/tests/test_classify.py          134      0   100%
xrspatial/tests/test_curvature.py          57      0   100%
xrspatial/tests/test_datasets.py            8      0   100%
xrspatial/tests/test_focal.py             198      1    99%
xrspatial/tests/test_hillshade.py          58      0   100%
xrspatial/tests/test_local.py             257      0   100%
xrspatial/tests/test_multispectral.py     222      1    99%
xrspatial/tests/test_pathfinding.py        69      0   100%
xrspatial/tests/test_perlin.py             35      0   100%
xrspatial/tests/test_polygonize.py        152      6    96%
xrspatial/tests/test_proximity.py         140      0   100%
xrspatial/tests/test_slope.py              35      0   100%
xrspatial/tests/test_terrain.py            33      0   100%
xrspatial/tests/test_tiles.py              75      0   100%
xrspatial/tests/test_utils.py               7      0   100%
xrspatial/tests/test_viewshed.py           92      1    99%
xrspatial/tests/test_zonal.py             237      0   100%
xrspatial/tiles.py                        230     71    69%
xrspatial/utils.py                        138     33    76%
xrspatial/viewshed.py                     872    716    18%
xrspatial/zonal.py                        670    329    51%
-----------------------------------------------------------
TOTAL                                    7041   2607    63%

So we know where to concentrate our efforts on increased testing. I don't know if codecov and numba talk to each other, so that is something else we need to investigate.

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.