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