How can I get output from pants test if the tests ...
# general
w
How can I get output from pants test if the tests lock up and I have to hit CTRL-C? Pants is buffering the output of the test runs somewhere, but it doesn't print it out if I have to cancel the tests due to a thread lockup/etc. Tried every options I can find in the pants test goal documentation, but I'm not having any luck. pants test --debug with pdb tracing just sends me into a deep excursion into hundreds of calls of pants internal stuff and doesn't give me any insights into where my code is going wrong. Any suggestions?
Finally made some progress (of course after I throw up my hands and ask for help, lol). I missed the test timeout settings before. These are now getting pants to abort lock tests and give some info. Hopefully this helps someone else.
h
Ah yes, unfortunately pants does not yet stream stdout/stderr from a running process, so the underlying pytest process has to terminate before Pants can show you anything
there is a ticket for this