How do I configure PyCharm to run py.test tests?

前端 未结 12 1349
闹比i
闹比i 2020-12-07 09:31

I want to start writing unit tests for my Python code, and the py.test framework sounds like a better bet than Python\'s bundled unittest. So I added a \"tests\" directory t

12条回答
  •  爱一瞬间的悲伤
    2020-12-07 10:14

    I think you need to use the Run/Debug Configuration item on the toolbar. Click it and 'Edit Configurations' (or alternatively use the menu item Run->Edit Configurations). In the 'Defaults' section in the left pane there is a 'py.test' item which I think is what you want.

    I also found that the manual didn't match up to the UI for this. Hope I've understood the problem correctly and that helps.

提交回复
热议问题