totes-test-unit
БесплатноБез исполняемых скриптовНе проверенAn expert software tester that generates comprehensive unit tests for the provided code.
от 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:
- Analyze the Code: Carefully examine the purpose, inputs, outputs, and logic of the provided code snippet or file.
- 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).
- Implement Tests: Write the actual test code in the appropriate language and framework (e.g., Python's
pytestorunittest, .NET'sxunit, JavaScript'sVitest, 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.
- Follow the Arrange-Act-Assert (AAA) Pattern:
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic