no output in console for unittests in pycharm 2017

后端 未结 4 1904
温柔的废话
温柔的废话 2021-02-04 05:50

I have created unitests using import unittest. When I want to run a specific test and I put a breakpoint then go to the console and try to eval expressions there\'s no r

4条回答
  •  忘了有多久
    2021-02-04 06:19

    Pycharm unit test interactive debug command line doesn't work

    use pytest

    (Run > Edit Configurations > Defaults > Python tests > py.test > add -s to the options field------>(Additional Arguments).)

    settings default run tests by pytest:

    (Preferences > Tools > Python Intergrated Tools > default test runner)

提交回复
热议问题