Unable to debug in pycharm with pytest

后端 未结 5 649
天命终不由人
天命终不由人 2021-02-01 00:56

I cannot debug in PyCharm using py.test. All the test suite is running ok in \"Debug mode\" but it doesn\'t stop on breakpoints.

I also have py

5条回答
  •  失恋的感觉
    2021-02-01 01:15

    I know that you had it right, but for me actually setting the Default test runner to pytest solved the problem. In PyCharm: Settings -> Python Integrated Tools -> Testing section -> Default test runner -> choose pytest from the dropdown menu -> Apply. And it instantly works.

提交回复
热议问题