pytest-auto-api2

Community

用 Pytest 自动化 YAML API 测试的完整指南与实战。

Authordawei12138
Version1.0.0
Installs0

System Documentation

What problem does it solve?

将 YAML 基于的 API 测试用例的编写、校验、生成与执行过程整合为一个可复用的技能,降低上手门槛并提升稳定性。

Core Features & Use Cases

  • YAML 用例规范化:提供清晰的字段定义、依赖与断言模板,帮助团队快速编写可执行的测试用例。
  • 全流程自动化:覆盖用例初始化、校验、生成测试代码与执行,以及 conftest 登录鉴权(Cookie/Token)的实战模板。
  • 兼容实战场景:支持本地开发与持续集成环境中的快速验证与调试。
  • Use Case: 在一个 API 测试套件中,使用 YAML 编排测试用例、依赖关系与缓存,自动生成对应的 pytest 用例并执行以产出报告。

Quick Start

使用本技能快速搭建一个基于 YAML 的测试工程,并通过 casego 的 validate、gen、run 流程实现用例生成、校验与执行。

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pytest-auto-api2
Download link: https://github.com/dawei12138/casego-backend-pg/archive/main.zip#pytest-auto-api2

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.