add-test-requirement
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAdd Test Requirement
添加测试要求
Always use the skill to retrieve the ***plain syntax rules — but only if you haven't done so yet.
load-plain-reference请始终使用技能来获取***plain语法规则——但仅在你尚未获取过的情况下使用。
load-plain-referenceWorkflow
工作流程
- Identify the target file. If ambiguous, ask the user.
.plain - Read the file to understand existing test reqs and the overall spec structure.
- Confirm this is a conformance test concern — unit test guidance goes in , not here.
***implementation reqs*** - Draft the requirement following the rules below.
- Insert it into the section.
***test reqs*** - Read the file again to confirm correct placement and syntax.
- 确定目标.plain文件。如果存在歧义,请询问用户。
- 读取文件,了解现有的测试要求和整体规格结构。
- 确认这属于一致性测试范畴——单元测试指导应放在中,而非此处。
***implementation reqs*** - 按照以下规则起草测试要求。
- 将其插入到部分。
***test reqs*** - 再次读取文件,确认放置位置和语法正确。
What Belongs Here
此处应包含的内容
Test reqs specify how conformance tests should be written and run. Common contents:
- Test framework: which framework to use (e.g., pytest, Unittest, xUnit)
- Execution method: the command to run the tests
- Testing constraints: what must or must not be done in tests (e.g., no skipping tests, mock requirements)
- Test data: how test fixtures or mock data should be structured
- Environment setup: any prerequisites for running conformance tests
测试要求用于指定一致性测试的编写和运行方式。常见内容包括:
- 测试框架:使用的框架(如pytest、Unittest、xUnit)
- 执行方法:运行测试的命令
- 测试约束:测试中必须或禁止执行的操作(如不允许跳过测试、模拟要求)
- 测试数据:测试夹具或模拟数据的结构方式
- 环境设置:运行一致性测试的任何先决条件
What Does NOT Belong Here
此处不应包含的内容
- Unit test guidance — that goes in
***implementation reqs*** - Acceptance tests — those are nested under individual functional specs in
***functional specs*** - Behavioral requirements — those go in
***functional specs*** - Technology choices for the implementation — those go in
***implementation reqs***
- 单元测试指导——应放在中
***implementation reqs*** - 验收测试——应嵌套在下的各个功能规格中
***functional specs*** - 行为要求——应放在中
***functional specs*** - 实现技术选择——应放在中
***implementation reqs***
Conformance Tests vs Other Tests
一致性测试与其他测试的对比
| Test Type | Where to Specify | Purpose |
|---|---|---|
| Unit tests | | Test individual functionalities in isolation |
| Conformance tests | | Verify implementation conforms to the full spec |
| Acceptance tests | | Verify a specific functional spec |
| 测试类型 | 指定位置 | 目的 |
|---|---|---|
| 单元测试 | | 孤立测试单个功能 |
| 一致性测试 | | 验证实现是否符合完整规格 |
| 验收测试 | 功能规格下的 | 验证特定功能规格 |
Format
格式
Test reqs are bullet points in the section:
***test reqs***plain
***test reqs***
- :ConformanceTests: should be implemented using pytest framework.
- :ConformanceTests: will be run using "pytest" command.
- :ConformanceTests: must be implemented and executed - do not skip tests.
- :ConformanceTests: should mock all external HTTP calls.Reference predefined concepts like and any defined where they add clarity.
:ConformanceTests::Concepts:测试要求是部分中的项目符号:
***test reqs***plain
***test reqs***
- :ConformanceTests: should be implemented using pytest framework.
- :ConformanceTests: will be run using "pytest" command.
- :ConformanceTests: must be implemented and executed - do not skip tests.
- :ConformanceTests: should mock all external HTTP calls.在能提升清晰度的情况下,引用预定义概念如和任何已定义的。
:ConformanceTests::Concepts:Validation Checklist
验证检查清单
- Describes conformance testing concerns, not unit tests or behavior
- All referenced are defined (or are predefined like
:Concepts:):ConformanceTests: - Does not duplicate guidance already present in the file or its imports
- Placed inside a section
***test reqs*** - No behavioral requirements that should be in
***functional specs***
- 描述的是一致性测试相关内容,而非单元测试或行为要求
- 所有引用的均已定义(或为
:Concepts:这类预定义概念):ConformanceTests: - 未重复文件或其导入内容中已有的指导
- 放置在部分内
***test reqs*** - 不包含应放在中的行为要求
***functional specs***