본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

neo-py-test-creator

martinforsulu 제작

Communication
—아직 평가 없음
내 평가

요약

Automatically generates pytest-compatible unit test templates from Python function signatures and docstrings.

설명

이 스킬이 하는 일

Generates pytest unit test templates from Python function signatures, type hints, and docstrings. Takes a Python file or code snippet and outputs a structured test file with edge case coverage and parametrized tests.

Writing test scaffolding by hand is repetitive; this skill derives test structure directly from the source code's own type annotations and docstrings.

사용 시점

  • Scaffolding tests for a new utility module
  • Generating test stubs before a code review
  • Covering edge cases for functions with complex type hints
  • Bootstrapping a test suite for legacy Python code
  • Creating parametrized tests from docstring examples

예시 워크플로

입력

User asks: Generate pytest tests for my utils.py file

에이전트
  1. 1

    Reads the target Python file or code snippet

  2. 2

    Parses function signatures, type hints, and docstrings using AST

  3. 3

    Identifies edge cases based on parameter types and default values

  4. 4

    Generates pytest-compatible test functions with assertions and docstrings

  5. 5

    Writes the output to test_utils.py with correct imports and structure

출력

A test_utils.py file containing pytest functions covering basic cases, boundary values, None inputs, and type edge cases for each function in utils.py

설치

clawhub install martinforsulu/neo-py-test-creator

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크