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