pytest Test Framework
について
このスキルは、開発者がPythonプロジェクト向けのpytestテストを実行および生成できるようにします。フィクスチャ、パラメータ化、モック機能といった主要なテスト機能をサポートしています。テンプレートからテストファイルを素早く作成し、構造化されたJSON出力でテストを実行するためにご利用ください。
クイックインストール
Claude Code
推奨/plugin add https://github.com/FortiumPartners/ai-meshgit clone https://github.com/FortiumPartners/ai-mesh.git ~/.claude/skills/pytest Test FrameworkこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
pytest Test Framework
Purpose
Provide pytest test execution and generation for Python projects, supporting:
- Test file generation from templates
- Test execution with structured output
- Fixtures and parametrized tests
- Mock and monkeypatch support
Usage
Generate Test File
python generate-test.py \
--source src/calculator.py \
--output tests/test_calculator.py \
--type unit \
--description "Calculator fails to handle division by zero"
Execute Tests
python run-test.py \
--file tests/test_calculator.py \
--config pytest.ini
Output Format
Test Generation
{
"success": true,
"testFile": "tests/test_calculator.py",
"testCount": 3,
"template": "unit-test"
}
Test Execution
{
"success": false,
"passed": 2,
"failed": 1,
"total": 3,
"duration": 0.234,
"failures": [
{
"test": "test_divide_by_zero",
"error": "AssertionError: Expected ZeroDivisionError",
"file": "tests/test_calculator.py",
"line": 15
}
]
}
Integration
Used by deep-debugger for Python project testing:
- Invoke test-detector to identify pytest
- Invoke generate-test.py to create failing test
- Invoke run-test.py to validate test fails
- Re-run after fix to verify passing
GitHub リポジトリ
関連スキル
content-collections
メタThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
evaluating-llms-harness
テストThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
webapp-testing
テストThis Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.
