Improve test coverage
adam2392 opened this issue · 6 comments
adam2392 commented
mscheltienne commented
mscheltienne commented
mscheltienne commented
adam2392 commented
Hmm must be something fishy w/ codecov itself then. It seems like its somehow caching the commands/
submodule, when we told it to omit it.
mscheltienne commented
Yes exactly.. The configuration in pyproject.toml
is:
[tool.coverage.run]
branch = true
cover_pylib = false
source = [
'mne_icalabel',
]
omit = [
'**/__init__.py',
'mne_icalabel/commands/*',
'mne_icalabel/_version.py',
'**/tests/**',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if __name__ == .__main__.:',
]
precision = 2
And there is actually an omit
argument for [tool.coverage.report]
as well. I did try it in one of the commits of #94 and it did not change anything as far as Codecov
is concerned. I did not find any configuration set for Codecov, neither at the repository or at the organization level that could explain it.
mscheltienne commented