Replies: 1 comment
-
Hi @ifeify,
That's strange, it should just run all tests and report failures. Are you passing
I don't think so, I would run pytest twice, once for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, if I have the following repo structure:
Is there a way to tell
xdist
to run tests frompkg1
on the local host and tests frompkg2
on a remote host? The problem I'm trying to solve ispkg2
is apyspark
application and the tests need to run in a glue docker container.pkg1
, on the other hand, has no special requirements and can run locally. I want to usepytest-cov
along withpytest-xdist
so I can get the coverage report for both packages at once. The idea is the glue container will act as the remote host and be ssh-able forxdist
.For additional context, for
pkg2
, I'm currently usingcoverage
tool but I mount the source repo as a volume in the glue docker container. This way, I can grab the.coverage
file and combine it with the coverage file frompkg1
to get the full report afterpytest
runs. The problem here iscoverage run pytest
stops after the first unit test failure and I don't get a full report.pytest-cov
plugin solves this issue for me and I get a full coverage report regardless of a failing unit test. Just need to make it work withxdist
so I can test thepyspark
application also.Thanks. Looking forward to hearing back.
Beta Was this translation helpful? Give feedback.
All reactions