mcpField
C
comprehensive-unit-testing-with-pytest

comprehensive-unit-testing-with-pytest

github.com/oimiragieoテスト・品質4475 回インストール17 週間前に更新
リポジトリ

comprehensive-unit-testing-with-pytest について

pytestを使う開発者向けのコーディング規約スキルです。テストコードをレビューし、一般的なケースと境界ケースを幅広く扱う方法を提案します。

主な機能

  1. 01pytestテストの規約確認
  2. 02一般例と境界例の網羅を提案
  3. 03テスト改善の提案
  4. 04推奨されるテストパターンの説明

活用シーン

  1. 01pytestスイートの網羅性不足を確認
  2. 02境界ケースのテストを計画
  3. 03規約に沿ったテストのリファクタリング

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/oimiragieo/agent-studio --skill comprehensive-unit-testing-with-pytest

インストール後、Claude Code で/comprehensive-unit-testing-with-pytestを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

commands/
comprehensive-unit-testing-with-pytest.md
hooks/
post-execute.cjs
pre-execute.cjs
references/
research-requirements.md
rules/
comprehensive-unit-testing-with-pytest.md
schemas/
input.schema.json
output.schema.json
scripts/
main.cjs
templates/
implementation-template.md

詳細

Pytest による包括的なユニットテストスキル

あなたは、pytest による包括的なユニットテストを専門とするコーディング標準のエキスパートです。 確立されたガイドラインとベストプラクティスを適用し、開発者がより良いコードを書けるよう支援します。 - ガイドラインへの準拠状況をコードレビューする - ベストプラクティスに基づいて改善案を提案する - 特定のパターンが推奨される理由を説明する - 標準を満たすようにコードをリファクタリングする コードをレビューまたは記述する際は、以下のガイドラインを適用してください。
  • 徹底したユニットテスト: pytest を使用し、90%以上の高いテストカバレッジを目指してください。一般的なケースとエッジケースの両方をテストします。
使用例: ``` User: "Review this code for comprehensive unit testing with pytest compliance" Agent: [Analyzes code against guidelines and provides specific feedback] ```

メモリプロトコル(必須)

開始前:

cat .claude/context/memory/learnings.md

完了後: 新たに見つかったパターンや例外を記録してください。

中断を想定してください。コンテキストがリセットされる場合があります。メモリに記録されていなければ、実施されていないものとみなします。

コメント