hurl-testing
Guidelines for generating, maintaining, and repairing Hurl tests for HTTP APIs. Covers contract testing, lifecycle management, cleanup discipline, and incremental maintenance from OpenAPI specs.
适合你,如果你需要为HTTP API编写或维护Hurl测试
/ 通过 npx 安装 校验哈希
npx oh-my-skill add quanxiaoxiao/quan-skills/hurl-testing/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- quanxiaoxiao/quan-skills/hurl-testing/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify quanxiaoxiao/quan-skills/hurl-testing安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~658最小装载
~1.5K含声明引用
~1.6K文本包总量
索引托管
怎么用
技能原文 SKILL.md
Hurl Testing
Generate and maintain Hurl coverage that validates the HTTP contract without drifting into implementation testing.
Use This Skill
Use this skill when:
- generating Hurl tests from OpenAPI
- adding new Hurl coverage for HTTP endpoints
- repairing failing Hurl files after API changes
- adding regression coverage for caller-visible API bugs
- reviewing Hurl suites for lifecycle or cleanup gaps
When NOT to use
Do not use this skill when:
- the task is unit or internal integration testing only
- the system is not HTTP-based
- there is no usable API contract or endpoint documentation
- browser automation or performance testing is the real goal
Pre-Read Order
Read the target repository first:
openapi.jsonoropenapi.yaml- existing Hurl files, usually under
tests/hurl/ - API documentation or README notes for business rules
Then load bundled guidance from this skill pack:
../../rules/hurl-testing.rule.md../../checklists/hurl-quality.checklist.mdreferences/test-structure.mdreferences/generation-and-repair.md
Workflow
- Start from the contract, not the implementation. Treat OpenAPI and documented API rules as the source of truth for status codes, schemas, and error envelopes.
- Map coverage by operation family. Organize files as
create.hurl,query.hurl,update.hurl,remove.hurl, or one dedicated[action].hurlfile per custom operation.
- Keep each file standalone and rerunnable. Create any required resources inside the file, capture identifiers locally, and perform cleanup in the same file.
- Assert declared behavior only. Check status codes, required fields, error envelopes, pagination structure, and business-critical invariants. Do not assert internal-only or undeclared fields.
- Repair failing tests in the right order. First verify the contract and actual server behavior. Update Hurl only when the contract changed or the existing assertions were wrong.
- Add regression coverage for externally visible bugs. If the user fixes an API bug, add or strengthen at least one Hurl scenario that would fail before the fix.
Reference Guide
Load these only when needed:
references/test-structure.mdfor file layout, lifecycle coverage, cleanup rules, pagination, and assertion scopereferences/generation-and-repair.mdfor generation templates, repair order, and regression rules
Verification
Always verify at the repository boundary:
- run the repository's Hurl command if one exists
- run affected Hurl files in isolation when practical
- rerun the suite or the relevant tag directory after repairs
If tests depend on environment setup, record the exact missing prerequisite instead of claiming success.
Output Contract
Return results in this order:
Contract ScopeCoverage Added Or RepairedVerificationResidual Risk
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…