Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Testing.Move Test Code

БесплатноБез исполняемых скриптовНе проверен

Split test classes into separate files based on the functions they test

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • The user passes a file with unit tests <TEST_FILE>

Plan Only (--only_plan)

  • With --only_plan, follow .claude/skills/skill.rules.md section "Create Only a Plan with --only_plan"
  • Write the plan to testing.move_test_code.<INPUT_REF>.md, then stop without executing the skill
    • Stop before "Get User Confirmation"

Workflow

Find Tested Functions

  • Find the functions that are tested in the file <TEST_FILE>
  • Prepare a plan that shows a mapping between
    • Test classes
    • The functions tested by each class
    • The file containing the tested functions

Propose Split Plan

  • Propose a plan to split the test classes in multiple files to match the code they test
    • E.g., Test_func1, testing the function func1 in funcs.py should go in test_funcs.py

Get User Confirmation

  • Ask the user to confirm the plan

Implement the Plan

  • Implement the plan moving the code without changing it

Important

  • For all the code you must follow the instructions in
    • .claude/skills/coding.rules.md
    • .claude/skills/testing.rules.md

Verification

  • --only_plan (check only this item): the plan is in testing.move_test_code.<INPUT_REF>.md in the current dir, has the Generated by line, and nothing was executed
  • Run the moved tests and confirm they still pass
  • Confirm no test logic changed during the move

Установить Testing.Move Test Code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Testing.Move Test Code?

Split test classes into separate files based on the functions they test

Как установить скилл Testing.Move Test Code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Testing.Move Test Code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Testing.Move Test Code с