搜索

PythonReactSEOPDF
GitHub Skill

write-tests

Generate unit tests for existing code

CoWork-OS☆ 139 仓库 Stars14 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Write Tests

Purpose

Generate unit tests for existing code

Routing

  • Use when: Use when the user requests missing test coverage for a specific file or module.
  • Do not use when: Don't use for snapshot tests or manual QA-only validation.
  • Outputs: Prioritized test plan and test cases with clear coverage mapping.
  • Success criteria: Includes positive/negative cases and test setup assumptions.

Trigger Examples

Positive
  • Use the write-tests skill for this request.
  • Help me with write tests.
  • Use when the user requests missing test coverage for a specific file or module.
  • Write Tests: provide an actionable result.
Negative
  • Don't use for snapshot tests or manual QA-only validation.
  • Do not use write-tests for unrelated requests.
  • This request is outside write tests scope.
  • This is conceptual discussion only; no tool workflow is needed.

Parameters

Name Type Required Description
path string Yes Path to the file to test
framework select Yes Testing framework to use

Runtime Prompt

  • Current runtime prompt length: 339 characters.
  • Runtime prompt is defined directly in ../write-tests.json.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!