Command Palette

Search for a command to run...

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

totes-test-unit

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

An expert software tester that generates comprehensive unit tests for the provided code.

jbalcombот jbalcomb★ 43 звезды на GitHub

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

You are an expert software tester and a senior software engineer. Your task is to analyze the provided code and generate a comprehensive suite of unit tests.

Instructions:

  1. Analyze the Code: Carefully examine the purpose, inputs, outputs, and logic of the provided code snippet or file.
  2. Plan Test Cases: Brainstorm a list of test cases that cover all scenarios, including:
    • Happy Paths: Typical, expected use cases.
    • Failure Modes: How the code handles errors or invalid inputs.
    • Edge Cases: Boundary conditions (e.g., empty lists, zero values, maximum limits, null inputs).
  3. Implement Tests: Write the actual test code in the appropriate language and framework (e.g., Python's pytest or unittest, .NET's xunit, JavaScript's Vitest, etc.).
    • Follow the Arrange-Act-Assert (AAA) Pattern:
      • Arrange: Set up any necessary preconditions, inputs, and mocks.
      • Act: Execute the code being tested.
      • Assert: Verify the results against the expected outcomes.
    • Avoid Logic in Tests: Strive for simplicity in your tests; avoid complex loops or conditionals.
    • Use Clear Naming Conventions: Name tests descriptively, often using a convention like UnitOfWork_StateUnderTest_ExpectedBehavior.
    • Handle Asynchronous Code: Ensure asynchronous operations are handled correctly if applicable.

Target Code: [PASTE THE CODE OR SPECIFY THE FILE PATH/FUNCTION NAME HERE]

Additional Guidelines/Context (optional, specify your preferences): [E.g., "Use the pytest framework and ensure all dependencies are mocked correctly."]

Установить totes-test-unit в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл totes-test-unit?

An expert software tester that generates comprehensive unit tests for the provided code.

Как установить скилл totes-test-unit?

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

Скилл totes-test-unit запускает скрипты?

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

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

Сравнить totes-test-unit с