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 Not Visible with Fork #101

Open
jaredoconnell opened this issue Sep 21, 2023 · 0 comments
Open

Coverage Not Visible with Fork #101

jaredoconnell opened this issue Sep 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jaredoconnell
Copy link
Contributor

Describe the bug

The coverage in the ATP server is not visible. This is due to the coverage library not properly following the code into the fork. There is coverage there, but the coverage should be visible to help ensure that future changes do not cause any regressions in code coverage.

One solution may be to switch from fork to multiprocessing.

Matt came up with this for multiprocessing:

coverage run --concurrency=multiprocessing,thread -m unittest test_example_plugin.py src/arcaflow_plugin_sdk/test_* && coverage combine && coverage report

.coveragerc

[run]
concurrency=multiprocessing,thread
@jaredoconnell jaredoconnell added the bug Something isn't working label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant