pytest执行用例提示 no tests ran in
解决方法:
1.先用命令行,如图所以,表示在虚拟环境执行的,新建项目时选择了虚拟环境创建项目

2.新建项目时,选择Existing interpreter,创建到本地,然后执行用例就OK啦

3.如果还不行就检查一下配置,设置----tools------Testing,选择pytest

最后
以上就是谨慎玉米最近收集整理的关于pytest执行用例提示 no tests ran in的全部内容,更多相关pytest执行用例提示内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复