简体   繁体   English

在 PyCharm 中运行测试时,如何立即看到 print() output?

[英]How can I see the print() output immediately when running tests in PyCharm?

Context语境

When I run tests in PyCharm, all print() output is delayed to show until the test finished.当我在 PyCharm 中运行测试时,所有print() output 都会延迟显示,直到测试完成。 I have long running tests, and would like to see some diagnostic print() during the run immediately我有长时间运行的测试,并希望在运行期间立即看到一些诊断print()

Question问题

How can I see the print() output immediately when running unit tests in PyCharm?在 PyCharm 中运行单元测试时,如何立即看到print() output?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM