Skip to content

codevov does not cov multithread processes #931

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

Closed
arnaudbore opened this issue Mar 1, 2024 · 3 comments
Closed

codevov does not cov multithread processes #931

arnaudbore opened this issue Mar 1, 2024 · 3 comments

Comments

@arnaudbore
Copy link
Contributor

Some documentationl:

https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html#if-you-use-multiprocessing-pool

nedbat/coveragepy#883 (comment)

Try some stuff but still doesnt work, thinking about raising an issue even tho this one seems to be very close to what we have

pytest-dev/pytest-cov#139

@arnaudbore
Copy link
Contributor Author

Exemple: https://app.codecov.io/gh/scilus/scilpy/blob/master/scilpy%2Freconst%2Fdivide.py#L266
Even it is tested with this script test: scripts/tests/test_btensor_metrics.py

@AlexVCaron
Copy link
Collaborator

Multiprocessing is not covered by pytest-cov anymore. They say use the configuration provided by coverage, here it is, hidden in the changelogs :

https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst#400-2022-09-28

Still not working on my end though ...

@arnaudbore
Copy link
Contributor Author

#1053 done

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

No branches or pull requests

2 participants