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

Do not include tests when calculating coverage #482

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

jsignell
Copy link
Contributor

@jsignell jsignell commented Dec 1, 2023

Before:

---------- coverage: platform linux, python 3.10.13-final-0 ----------
Name                               Stmts   Miss  Cover
------------------------------------------------------
cf_xarray/__init__.py                  8      0   100%
cf_xarray/_version.py                  1      0   100%
cf_xarray/accessor.py               1053     62    94%
cf_xarray/coding.py                   53      7    87%
cf_xarray/criteria.py                 17      2    88%
cf_xarray/datasets.py                 89      0   100%
cf_xarray/formatting.py              144     12    92%
cf_xarray/geometry.py                 98      2    98%
cf_xarray/helpers.py                  64      6    91%
cf_xarray/options.py                  23      0   100%
cf_xarray/scripts/make_doc.py         28      1    96%
cf_xarray/sgrid.py                    20      0   100%
cf_xarray/tests/__init__.py           47     16    66%
cf_xarray/tests/test_accessor.py    1054      2    99%
cf_xarray/tests/test_coding.py        19      0   100%
cf_xarray/tests/test_geometry.py      76      0   100%
cf_xarray/tests/test_helpers.py       38      2    95%
cf_xarray/tests/test_options.py        5      0   100%
cf_xarray/tests/test_scripts.py       13      0   100%
cf_xarray/tests/test_units.py         39      0   100%
cf_xarray/units.py                    41      4    90%
cf_xarray/utils.py                    71      8    89%
------------------------------------------------------
TOTAL                               3001    124    96%

After:

---------- coverage: platform linux, python 3.10.13-final-0 ----------
Name                            Stmts   Miss  Cover
---------------------------------------------------
cf_xarray/__init__.py               8      0   100%
cf_xarray/_version.py               1      0   100%
cf_xarray/accessor.py            1053     62    94%
cf_xarray/coding.py                53      7    87%
cf_xarray/criteria.py              17      2    88%
cf_xarray/datasets.py              89      0   100%
cf_xarray/formatting.py           144     12    92%
cf_xarray/geometry.py              98      2    98%
cf_xarray/helpers.py               64      6    91%
cf_xarray/options.py               23      0   100%
cf_xarray/scripts/make_doc.py      28      1    96%
cf_xarray/sgrid.py                 20      0   100%
cf_xarray/units.py                 41      4    90%
cf_xarray/utils.py                 71      8    89%
---------------------------------------------------
TOTAL                            1710    104    94%

@dcherian dcherian merged commit dc1fb1b into xarray-contrib:main Dec 1, 2023
9 of 10 checks passed
@dcherian
Copy link
Contributor

dcherian commented Dec 1, 2023

❤️

@jsignell jsignell deleted the cov branch December 1, 2023 16:25
jsignell added a commit to jsignell/cf-xarray that referenced this pull request Dec 1, 2023
dcherian pushed a commit that referenced this pull request Dec 1, 2023
* Fix codecov reporting (follow up to #482)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

2 participants