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

Coverage config incompatible with pyCharm #461

Open
Olegt0rr opened this issue Feb 5, 2024 · 3 comments · May be fixed by #462
Open

Coverage config incompatible with pyCharm #461

Olegt0rr opened this issue Feb 5, 2024 · 3 comments · May be fixed by #462

Comments

@Olegt0rr
Copy link
Collaborator

Olegt0rr commented Feb 5, 2024

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

@Olegt0rr Olegt0rr linked a pull request Feb 5, 2024 that will close this issue
3 tasks
@Dreamsorcerer
Copy link
Member

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.

@Olegt0rr
Copy link
Collaborator Author

Olegt0rr commented Feb 5, 2024

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

@Olegt0rr
Copy link
Collaborator Author

Tried to run aiohttp tests with default pyCharm settings.

Got 0% coverage :(

Screenshot 2024-04-15 at 22 14 53

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 a pull request may close this issue.

2 participants