摘要:
用例运行级别 模块级(setup_module/teardown_module)开始于模块始末,全局的 函数级(setup_function/teardown_function)只对函数用例生效(不在类中) 类级(setup_class/teardown_class)只在类中前后运行一次(在类中) 阅读全文
posted @ 2021-11-12 10:29
暄总-tester
阅读(88)
评论(0)
推荐(0)
摘要:
运行用例总结 在第N个用例失败后,结束测试执行 pytest -x # 第x次失败,就停止测试 pytest --maxfail=2 # 出现2个失败就终止测试 指定测试模块 pytest test_mod.py 指定测试目录 pytest testing/ 通过关键字表达式过滤执行 pytest 阅读全文
posted @ 2021-11-12 10:26
暄总-tester
阅读(80)
评论(0)
推荐(0)

浙公网安备 33010602011771号