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

Code Coverage Multiprocessing Issues #7

Closed
John-P opened this issue Jul 2, 2020 · 3 comments
Closed

Code Coverage Multiprocessing Issues #7

John-P opened this issue Jul 2, 2020 · 3 comments
Assignees

Comments

@John-P
Copy link
Contributor

John-P commented Jul 2, 2020

It appears that pytest-cov cannot detect code coverage for any function run in a subprocess using the decorator function in multiproc.py. I am not clear if this is a multiprocessing issue of a decorator issue. This needs to be resolved to get anything near accurate code coverage.

There is some information on pytest-cov subprocesses here: https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html.

It is likely due to pathos not being compatible with code coverage tools 😞

@John-P
Copy link
Contributor Author

John-P commented Jul 2, 2020

We could also look into using the coverage module instead of pytest-cov. This is also defined in the Makefile which we should tidy up too.

@John-P
Copy link
Contributor Author

John-P commented Jul 2, 2020

We could also consider trying the coverage module. This is what is currently set up in the Makefile (see #8) but we are using pytext-cov on Travis currently.

@John-P John-P mentioned this issue Jul 2, 2020
5 tasks
@John-P
Copy link
Contributor Author

John-P commented Oct 14, 2020

Marking as closed due to removal of multiprocessing for the time being.

@John-P John-P closed this as completed Oct 14, 2020
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

3 participants