【pytest】2.运行方法&参数

1、选择测试用例的方法 1、执行某一个py文件下用例 pytest test_mod.py 2、执行某个目录下所有的用例 pytest testing/ 3、按关键字表达式运行测试 pytest -k "MyClass and not method" # and not:表达式,不经过测试。运行Te
posted @ 2021-11-29 20:11  --D  阅读(367)  评论(0编辑  收藏  举报