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

后端 未结 6 1288
忘掉有多难
忘掉有多难 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:56

    I needed to add too the option --nologcapture to nosetests as param in pycharm 2016.3.2

    Run>Edit COnfigurations > Defaults > Python Tests > Nosetests : activate the check for Prams option and add --nologcapture

提交回复
热议问题