摘要: 官方文档 pytest.org 测试文件格式 test_*.py or *_test.py 用例识别 Test*类,类中不能 有__init__,或者方法名是test* pycharm 下用pytest运行 fixture 学习 1. setup、teardown可以实现在执行用例前或结束后加入一些 阅读全文
posted @ 2021-08-10 21:00 sunshine100034 阅读(107) 评论(0) 推荐(0)
摘要: 1. 语句覆盖,,每条语句都覆盖到--》弊端:or and 写错,测不出来、 2 判断语句,语句的true false都覆盖 3. 条件覆盖, 每条 语句 true false都覆盖 太多 4. 路径覆盖,覆盖所有可能执行的路径 unittest 是python自带的库,从python官网去查找 1 阅读全文
posted @ 2021-08-10 19:17 sunshine100034 阅读(36) 评论(0) 推荐(0)
摘要: 1. 安装完毕,配置用户名邮箱 git config --global user.name "yourname" git config --global user.email "xxx" 2 git config -l 查看配置 3 创建仓库 git init 4 添加到临时仓库 git add r 阅读全文
posted @ 2021-08-10 14:24 sunshine100034 阅读(30) 评论(0) 推荐(0)