2、pycharm中设置pytest为默认运行

1.打开File-setting

2.打开Tools-Python Integrated Tools

3.找到Default test runner选项,在下拉框中选择py.test

4.点Apply。

5.在运行时会出现py.test的运行选项

猜你喜欢

转载自www.cnblogs.com/little-little-bai/p/11290285.html