https://pantsbuild.org/ logo
l

loud-laptop-17949

11/18/2021, 10:01 PM
Is there any way to have pants run tests in the docker images it builds?
h

hundreds-father-404

11/18/2021, 10:06 PM
Oh that would be so cool! Do you mean that you have normal python_tests, but you run those tests with Docker? Or you have tests written directly in a Dockerfile?
l

loud-laptop-17949

11/19/2021, 2:05 AM
I mean configure a
python_tests
to depend on a
docker_image
and when running those tests, run a container with that image (and build it if needed)
👍 1
context for this is that we have some python code with a lot of dependencies on system libraries and cli tools. I want a clear way to run and test that code
👍 1
💯 1
h

hundreds-father-404

11/19/2021, 2:54 AM
We've talked about how powerful that would be, but I don't see a feature request for it. Would you be willing to open one explaining your use case?
c

curved-television-6568

11/19/2021, 6:06 AM
If it builds the image, are the cli tools etc available as dependencies, or in a base image (or else where)?
m

modern-wolf-36228

11/19/2021, 9:20 AM
If an issue is created with this, please share it here, I'd like to subscribe 😉
👍 1
l

loud-laptop-17949

11/19/2021, 6:29 PM
m

modern-wolf-36228

11/22/2021, 10:43 AM
thanks