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
Covering code run by a docker container from tests run on the host #315
Comments
Well, if you can access the output directories of both the docker run and the host run, then you can do a merge step afterwards:
which should give you the union of both runs in |
Thanks a lot, I'll let you know when it will work! |
I currently use kcov for my tests of a script located on my host. This script run some commands in a docker container, including shared code between the host and the container: https://github.com/jclaveau/docker-php-multiversion
The code executed on the host is well covered but the part which is run via
docker exec my_container ...
is not as you can see here: https://codecov.io/gh/jclaveau/docker-php-multiversionThis seems logical but produces a kind of false negative and I would like to know if there is a way to merge the covered part of the host with the one of the container or maybe a way to let
docker exec
provide feedback to kcov.Thanks in advance and for your work!
The text was updated successfully, but these errors were encountered: