Skip to main content

create-e2e-fixture

How to author a new e2e test fixture for cross-language test generation — fixture fields, assertion types, and id conventions. Load when adding or editing e2e fixtures consumed by the generator.

来源信息

仓库
xberg-io/agent-conventions
最近来源活动
2026年8月20日 12:20
检测到的 SKILL.md 语言
英语
星标
8
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
create-e2e-fixture
description
How to author a new e2e test fixture for cross-language test generation — fixture fields, assertion types, and id conventions. Load when adding or editing e2e fixtures consumed by the generator.
# Create E2E Fixture ## Steps 1. **Identify the test case**: What behavior needs testing across language bindings? 1. **Choose category**: smoke, basic, parsing, edge-case, error-handling, or platform-specific. 1. **Write fixture JSON**: ```json { "id": "descriptive_snake_case_name", "category": "basic", "description": "Tests that X produces Y", "source_code": "input data or code", "assertions": { "tree_not_null": true, "expect_error": false }, "tags": ["regression"] } ``` 1. **Add to fixtures directory**: Place in appropriate category file or subdirectory. 1. **Regenerate**: Run `task e2e:generate`. 1. **Verify**: Run `task e2e:test` to confirm all languages pass. 1. **Commit**: Include fixture + regenerated test files in same commit. ## Guidelines - IDs must be unique across all fixture files - Include both positive and negative test cases - Add skip conditions for platform-specific behavior - Keep source_code minimal — test one thing per fixture
在 GitHub 查看