摘要:
在pytest提供的终端运行测试用例的方式的基础上,pytest还支持使用配置文件来简化运行参数。可以通过pytest --help 查看pytest配置文件的名:pytest.ini \tox.ini\setup.cfg.CI持续集成(setup.cfg) git commit 配置文件一般保存在 阅读全文
posted @ 2022-08-28 22:12
安好_世界
阅读(99)
评论(0)
推荐(0)
摘要:
方法级别:setup与teardown def add(x,y):#功能 return x+y class Test_Add(object):#pytest 要以Test开头 '''测试用例''' def setup(self): print("setup执行初始化") def teardown(s 阅读全文
posted @ 2022-08-28 21:41
安好_世界
阅读(246)
评论(0)
推荐(0)

浙公网安备 33010602011771号