本文へ移動
cccskills
無料GitHub で公開

test-writer

Generate comprehensive test suites for existing code

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Test Writer

Generate comprehensive tests for the target code.

Process

  1. Read the source code to understand all public functions/methods
  2. Identify the testing framework already used in the project (pytest, unittest, etc.)
  3. Follow existing test patterns and conventions in the project
  4. Write tests covering all categories below

Coverage Strategy

Happy Path

  • Normal inputs with expected outputs
  • All public methods/functions

Edge Cases

  • Empty inputs (empty string, empty list, None)
  • Boundary values (0, -1, max int)
  • Single element collections

Error Cases

  • Invalid input types
  • Missing required arguments
  • Network/IO failures (mock external calls)

Integration

  • Multiple functions working together
  • State changes across calls

Guidelines

  • One test function per behavior, not per method
  • Descriptive test names: test_<what>_<condition>_<expected>
  • Use fixtures for shared setup
  • Mock external dependencies (APIs, databases, filesystem)
  • Assert specific values, not just truthiness
  • Test both return values and side effects

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Building, compiling, and resolving dependency issues across languages

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

Review Python code for quality, security, and best practices

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

Systematic code review for bugs, security, style, and performance

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

Comprehensive data analysis skill for CSV files using Python and pandas

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

Working with diverse data formats: binary, text, structured, and custom

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

Best practices for creating research diagrams with Excalidraw MCP tools

日本語の概要は準備中です。原文の説明を表示しています。

vstorm-co/pydantic-deepagents1,0782026年10月6日 更新

vstorm-co のスキルをすべて見る

このスキルの問題を報告する