pycharm如何配置pytest
2019-10-29 本文已影响0人
Darker_坤
Mac下
PyCharm Community Edition-->Preference-->Tools-->Python Integrated Tools, 把Default test runner换为pytest就可以了

正常情况下如下图


如果无法正常使用,则可能你最开始用unittest进行了测试 则需要按照下图删除使用过的测试文件即可


Mac下
PyCharm Community Edition-->Preference-->Tools-->Python Integrated Tools, 把Default test runner换为pytest就可以了
正常情况下如下图
如果无法正常使用,则可能你最开始用unittest进行了测试 则需要按照下图删除使用过的测试文件即可