功能qa测试框架
lemoncheesecake的Python项目详细描述
Lemoncheesecake在提供诸如 固定装置和火柴。
下面是一个测试示例:
importjsonimportrequestsimportlemoncheesecake.apiaslccfromlemoncheesecake.matchingimport*URL="https://api.github.com/orgs/lemoncheesecake"@lcc.suite("Github tests")classgithub:@lcc.test("Test Organization end-point")deforganization(self):lcc.set_step("Get lemoncheesecake organization information")lcc.log_info("GET %s"%URL)resp=requests.get(URL)require_that("HTTP code",resp.status_code,is_(200))data=resp.json()lcc.log_info("Response\n%s"%json.dumps(data,indent=4))lcc.set_step("Check API response")check_that_in(data,"type",is_("Organization"),"id",is_integer(),"description",is_not_none(),"login",is_(present()),"created_at",match_pattern("^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$"),"has_organization_projects",is_true(),"followers",is_(greater_than_or_equal_to(0)),"following",is_(greater_than_or_equal_to(0)),"repos_url",ends_with("/repos"),"issues_url",ends_with("/issues"),"events_url",ends_with("/events"),"hooks_url",ends_with("/hooks"),"members_url",ends_with("/members{/member}"),"public_members_url",ends_with("/public_members{/member}"))
下面是相应的测试结果:
新闻
2019年8月11日,LemoncheeseCake 1.0.0发布。这个主要版本带来了(除其他外):
- 各种API改进
- 为大多数api键入注释
- 改进的文档
- 新的API参考文档
查看完整的changelog 更多信息。
此版本与以前的0.22.x版本不兼容。迁移过程记录在 Migrating from to 0.22.x to 1.x。
功能
- 使用套件、测试和嵌套套件的高级测试层次结构
- 测试描述和元数据:标记、属性(键=值关联)和链接
- 支持测试筛选
- 内置多种报告风格:html、json、xml、junit、reportportal、slack通知
- 测试并行化
- rich cli工具箱
lemoncheesecake与python 2.7、3.4-3.7兼容。
安装
Lemoncheesecake可以通过pip安装:
$ pip install lemoncheesecake
有关使用非默认报告后端安装lemoncheesecake的详细信息,请参见 here。
文档
文档可在http://docs.lemoncheesecake.io上找到。
联系人
错误和改进的想法在门票中受到欢迎。谷歌集团论坛也可用于讨论 柠檬蛋糕:https://groups.google.com/forum/#!forum/lemoncheesecake。