pytest执行用例提示 no tests ran in
解决方法:
1.先用命令行,如图所以,表示在虚拟环境执行的,新建项目时选择了虚拟环境创建项目
2.新建项目时,选择Existing interpreter,创建到本地,然后执行用例就OK啦
3.如果还不行就检查一下配置,设置----tools------Testing,选择pytest
pytest执行用例提示 no tests ran in
解决方法:
1.先用命令行,如图所以,表示在虚拟环境执行的,新建项目时选择了虚拟环境创建项目
2.新建项目时,选择Existing interpreter,创建到本地,然后执行用例就OK啦
3.如果还不行就检查一下配置,设置----tools------Testing,选择pytest