Is it possible to force output from pants commands...
# general
a
Is it possible to force output from pants commands? My integration tests are hanging indefinitely without further output, even with:
Copy code
pants test -ldebug --output=all projects/project-1/tests/integration/test_get_user_data.py -- -s
I suspect that a fixture is hanging indefinitely, but it's impossible to debug without any output. The timer keeps counting up on the following:
Copy code
4.75s Run Pytest for projects/project-1/tests/integration/test_get_user_data.py:tests
r
Have you tried passing underlying pytest options for verbose output?
Copy code
-vv -s
https://www.pantsbuild.org/docs/python-test-goal#passing-arguments-to-pytest
h
Well, note that output isn't streamed from a running process, it will only display when the process exits one way or another. You can set a timeout on the
python_tests()
target to ensure that the process exits.
Well, there is a timeout anyway, but you can tweak it
a
That works, thank you!
r
probably you could try
pants test --debug ...
for an interactive test session
👆 2
👍 2