针对测试用例生成添加了常用测试方法;更新了需求提取工具
This commit is contained in:
77
.github/skills/format-output/SKILL.md
vendored
Normal file
77
.github/skills/format-output/SKILL.md
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
---
|
||||
name: format-output
|
||||
description: "当需要将测试项、测试用例、预期成果按统一格式输出时使用。"
|
||||
---
|
||||
|
||||
# format-output
|
||||
|
||||
## 目标
|
||||
将测试链路中生成的结构化数据整理为标准化三段式输出,确保可读性与追踪关系。
|
||||
|
||||
## 输入
|
||||
- normal_test_items
|
||||
- abnormal_test_items
|
||||
- normal_test_cases
|
||||
- abnormal_test_cases
|
||||
- normal_expected_results
|
||||
- abnormal_expected_results
|
||||
- coverage_analysis(可选)
|
||||
- method_alignment_report(可选)
|
||||
- debug(可选)
|
||||
|
||||
## 输出
|
||||
- markdown_output
|
||||
|
||||
## 强制规则
|
||||
1. 输出必须包含三段:测试项、测试用例、预期成果。
|
||||
2. 每段必须按正常测试与异常测试分组。
|
||||
3. 编号必须保持追踪关系:
|
||||
- 测试项编号:TI-Nxx / TI-Exx
|
||||
- 测试用例编号:TC-Nxx / TC-Exx
|
||||
- 预期成果编号:ER-Nxx / ER-Exx
|
||||
4. 测试用例必须显示对应测试项;预期成果必须显示对应测试用例。
|
||||
5. 任一分段数据为空时,必须显式输出待补充,不允许静默省略。
|
||||
6. 每条输出使用一段完整描述,不强制拆分为多个字段子项。
|
||||
|
||||
## 输出模板
|
||||
|
||||
**测试项**
|
||||
|
||||
**正常测试**
|
||||
1. [TI-N01]:...
|
||||
|
||||
**异常测试**
|
||||
1. [TI-E01]:...
|
||||
|
||||
**测试用例**
|
||||
|
||||
**正常测试**
|
||||
1. [TC-N01](对应 TI-N01):...
|
||||
|
||||
**异常测试**
|
||||
1. [TC-E01](对应 TI-E01):...
|
||||
|
||||
**预期成果**
|
||||
|
||||
**正常测试**
|
||||
1. [ER-N01](对应 TC-N01):...
|
||||
|
||||
**异常测试**
|
||||
1. [ER-E01](对应 TC-E01):...
|
||||
|
||||
## 调试模式
|
||||
当 debug=true 时追加:
|
||||
|
||||
### 覆盖率分析
|
||||
- requirement_coverage_rate
|
||||
- uncovered_points
|
||||
- recommended_supplementary_items
|
||||
|
||||
### 方法对齐分析
|
||||
- method_alignment_report
|
||||
|
||||
### 步骤日志
|
||||
- step_name
|
||||
- success
|
||||
- fallback_used
|
||||
- duration_ms
|
||||
Reference in New Issue
Block a user