How can I see log messages when unit testing in PyCharm?

后端 未结 6 1338
忘掉有多难
忘掉有多难 2021-02-05 06:35

I\'m sure this is a simple fix, but I\'d like to view log messages in the PyCharm console while running a unit test. The modules I\'m testing have their own loggers, an

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 06:55

    In Edit Configurations:

    • delete old configurations
    • go to Defaults / Python tests / NoseTests
    • add --nologcapture to "additional Arguments"

    worked like a "charm" for me in pyCharm 2017.2.3

    thanks bott

提交回复
热议问题