Codex autodarts-xconfig 回归测试|用最小用例锁住设置默认值
EnglishCodex 安装步骤
- 打开 GitHub 固定提交的 `.agents/skills/test-regression-design/SKILL.md`,核对内容与使用条件。
- 在自己的项目中创建 `.agents/skills/test-regression-design/`,把核对后的文件保存为 `.agents/skills/test-regression-design/SKILL.md`。
- 在该项目根目录启动 Codex,输入 `$test-regression-design` 并选择同名技能。
中文摘要
先判断改动属于领域、运行状态、配置或界面结构,再选能证明行为的最小测试层。
SKILL.md 中文导读
可复现示例
为以下虚构的菜单设置回归设计测试。
{"setting":"showSummary","configState":"no explicit value","observedDefault":true,"expectedDefault":false,"layer":"config"}工作步骤
- 按故障表现判断回归分类。
- 选择最小且能直接证明行为的测试层。
- 加入能捕捉旧问题的输入,并检查相关边界。
验收方法
在 `config` 测试用无配置输入断言 `showSummary=false`,让旧默认值触发失败。
GitHub 原文 · 更新日期
适用环境
用 Codex 打开 autodarts-xconfig 项目,准备错误表现、已确认的默认值和现有测试。
常见问题
如果问题仅在界面节点被替换时出现怎么办?
选用 DOM 测试夹具,在相同语义状态下替换节点,核对交互结果。
相关指南
相关推荐
dart-asset-normalization 技能
thomasasen/autodarts-xconfig
analyze-performance-hotspots 技能
thomasasen/autodarts-xconfig
debug-live-autodarts-dom 技能
thomasasen/autodarts-xconfig
Codex autodarts-xconfig 文档同步|核对菜单名和实际默认值
thomasasen/autodarts-xconfig
feature-change 技能
thomasasen/autodarts-xconfig
validate-repo-change 技能
thomasasen/autodarts-xconfig