‹ 首页

formax-test-stability-workflow

@yusifeng · 收录于 5 天前 · 上游提交 3 周前

Use when adding or fixing Formax tests (especially Ink UI tests) and you need deterministic synchronization in test interactions.

适合你,如果你在编写或修复 Formax 的 Ink UI 测试,需要避免竞态条件。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add yusifeng/formax/formax-test-stability-workflow
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- yusifeng/formax/formax-test-stability-workflow
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify yusifeng/formax/formax-test-stability-workflow
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
192GitHub stars
~173上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 5a48573 · 表述以原文为准
它做什么

Claude 会帮你编写稳定的 UI 测试,在测试中主动等待目标状态出现后再执行下一步,并提取重复的同步步骤为辅助函数。

什么时候触发

当你需要添加或修复 Formax 测试(尤其是 Ink UI 测试),并且需要在测试交互中保持确定性同步时触发。

装好后可以这样说
Claude 会生成带显式状态同步的测试代码。
Claude 会在测试中插入等待条件。
Claude 会重构测试代码,封装同步逻辑。
技能原文 SKILL.md作者撰写 · MIT · 5a48573

Formax Test Stability Workflow

Goal
  • Write stable UI tests with explicit state sync.
Do
  • Wait for target state before next key (example: wait ❯ 3. before typing feedback).
  • Assert final behavior, not transient cursor frames (example: assert feedback aXb, not a▏b).
  • In multi-step input flows, wait for idle state between steps (example: placeholder/queue-hint settled).
  • Extract repeated sync steps into local helpers (example: selectFeedbackRow, queueMessageWhileLoading).
Don't
  • Do not fix flakes by only increasing timeout.
  • Do not use long sleep as synchronization.
  • Do not bind assertions to fragile render glyphs/spacing.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。