Hi all, I am evaluating Pants to improve the tooli...
# general
m
Hi all, I am evaluating Pants to improve the tooling of our Python based monorepo. I am facing some issues with
pants test
where it simply hangs. I was able to narrow down the cause to the imports of first party code from conftest.py file, but I am not sure what could be the actual reason. I was also able to get the command to work when I comment out all my code in conftest.py. In addition, the test works fine when I run the pytest command directly. Any help in this matter would be appreciated 🙏
a
A first debugging step might be to use keep-sandboxes which will persist the sandbox directory in which your
pants test
command runs. Looking at
_run.sh
inside, you can see the pytest command that pants executes and how it's different than your own testing (both in terms of args, and on what files it runs)
❤️ 1
👀 2
gratitude thank you 1