testing

Help write and organize tests for Python projects. Use PROACTIVELY when new code is written. Keywords: test, testing, pytest, テスト

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 17, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill streamlines Python development by proactively assisting in the creation and organization of robust test suites. It leverages pytest best practices—including fixtures, mocking, and parametrization—to improve code coverage and ensure software reliability from the moment new code is written.

Use Cases

  • Automated Unit Testing: Proactively generating test cases for newly written Python functions and classes to ensure immediate logic validation.
  • Test Suite Optimization: Refactoring existing tests to utilize pytest fixtures and parametrization for cleaner, more maintainable codebases.
  • Coverage Improvement: Identifying gaps in code coverage and generating targeted tests to ensure all execution paths are verified.
  • Mocking and Isolation: Implementing sophisticated mocking strategies to isolate external dependencies and facilitate reliable integration testing.
nametesting
descriptionHelp write and organize tests for Python projects. Use PROACTIVELY when new code is written. Keywords: test, testing, pytest, テスト

When to Use (PROACTIVE)

  • New function/class is created
  • User asks about testing
  • User mentions "test", "テスト", "pytest"
  • Code coverage needs improvement

What This Skill Does

Provides pytest patterns and best practices:

  • Test structure
  • Fixtures
  • Parametrization
  • Mocking
  • Coverage

Refer to pytest-guide.md for examples.