1、下载pytest

打开pycharm的preferences,点击Project下的Project Interpreter,在右侧点击加号

pycharm安装pytest

在弹出的页面搜索框中输入pytest,在搜索结果中选中pytest点击Install Package,将会进行pytest的安装

pycharm安装pytest

2、将pytest设置为默认的运行方式

在Preferences页面的Tools下点击Python Integrated Tools,在右侧的Testing的Default test runner下拉框选中pytest,然后点击Apply

pycharm安装pytest

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2021-05-03
  • 2021-04-07
  • 2021-08-27
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案