1.以pytest方式运行,需要运行该设置默认的运行器:file->Setting->Tools->Python integrated Tools->
2.把里面的 Default test runner 更改为 pytest

本文介绍如何将Pytest设置为IDE中的默认测试运行器。通过简单的步骤,包括进入设置界面并选择Python Integrated Tools,可以更改默认的测试运行器为Pytest,从而方便进行单元测试。
1.以pytest方式运行,需要运行该设置默认的运行器:file->Setting->Tools->Python integrated Tools->
2.把里面的 Default test runner 更改为 pytest

669
3254

被折叠的 条评论
为什么被折叠?