Pycharm 界面化安装 Pytest

Pycharm 配置与界面化运行 (相当于pip install pycharm,pytest解释器与python解释器不同)

如何让pycharm运行pytest?

  • 进入 Tools->Python Intergrated Tools

  • 选择 Default test runner 为 pytest