aio-libs / aiohttp-sse

Server-sent events support for aiohttp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage config incompatible with pyCharm

Olegt0rr opened this issue · comments

Since PR #432 was merged working with test coverage inside pyCharm become broken

It's related with old pyCharm issue

/PyCharm Professional Edition.app/Contents/plugins/python/helpers/coveragepy_new/coverage/inorout.py:519: CoverageWarning: Module aiohttp_sse/ was never imported. (module-not-imported)
  self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
/PyCharm Professional Edition.app/Contents/plugins/python/helpers/coveragepy_new/coverage/inorout.py:519: CoverageWarning: Module tests/ was never imported. (module-not-imported)
  self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
/PyCharm Professional Edition.app/Contents/plugins/python/helpers/coveragepy_new/coverage/control.py:801: CoverageWarning: No data was collected. (no-data-collected)
  self._warn("No data was collected.", slug="no-data-collected")
/PycharmProjects/aiohttp-sse/.venv312/lib/python3.12/site-packages/pytest_cov/plugin.py:312: CovReportWarning: Failed to generate report: No data to report.

  warnings.warn(CovReportWarning(message))

Waiting for pyCharm issue become closed may take some years :(
So it would be nice to move coverage settings back to coverage config

The linked issue is related to other config files, but we're not using them anyway. I'm unclear what is actually causing the issue for you.

Linked issue was false marked as duplicate. Correct link: https://youtrack.jetbrains.com/issue/PY-59553

Tried to run aiohttp tests with default pyCharm settings.

Got 0% coverage :(

Screenshot 2024-04-15 at 22 14 53