02 2020 档案
摘要:初始化清除操作: 用例级别: def setup(): def teardown() 套件级别: def setup_module() def teardown_module() 类级别:(可以不加classmethod装饰器) def setup_class(self) def teardown_
阅读全文
摘要:pytest特点: 用例语言是纯python 不支持测试报告,但可以使用插件(pytest-html) 可以不导入pytest模块执行测试用例 兼容性强,可以执行unittest测试用例 pytest --help 查看帮助 pytest命名规则: 模块、函数、类与方法必须以test_开头 如果是嵌
阅读全文