跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

test-domain

Generate or run tests for a domain using the repository's established factory, unit, integration, and admin test patterns.

Mr-DooSun · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Mr-DooSun/fastapi-agent-blueprint --skill test-domain

技能说明


name: test-domain description: Generate or run tests for a domain using the repository's established factory, unit, integration, and admin test patterns. metadata: short-description: Generate or run domain tests

Test Domain

Default Flow Position

  • Step: verify (canonical owner). run mode is the standard post-implement action; generate mode itself is an implement-style operation and must be followed by run to exercise the new tests.
  • Routes after: self-review (/review-architecture {name}) if layer interactions changed → completion gate (/review-pr)
  • Recursion guard: n/a

Procedure

  1. Read docs/ai/shared/skills/test-domain.md for the full procedure.
  2. Read docs/ai/shared/test-patterns.md for factory patterns and test examples.
  3. Decide whether the request is generate mode or run mode.
  4. In generate mode: inspect the domain, compare existing tests to required file set, generate missing ones.
  5. In run mode: execute the relevant pytest scope and analyze failures.
  6. Keep factories and test names aligned with the shared test pattern file.