Unit Test Generator
Generate focused unit tests covering happy paths, boundaries and errors.
Executive Summary
Short answer: Generate focused unit tests covering happy paths, boundaries and errors.. Input is Function source, framework, existing test conventions; output is Test file, case list, coverage notes.
Capabilities on this page come from Clavue Bot's built-in catalog; no 1:1 alignment with any third-party product is claimed.
Commercial ROI & Use Cases
Unit Test Generator reduces repeated manual work and gets a reviewable result faster.
- Demand topics: Coding & DevOps
Input/Output Contract
| Input | Output | Tools / Connectors |
|---|---|---|
| Function source, framework, existing test conventions | Test file, case list, coverage notes | Code · GitHub |
Connect tools first · Actions like sending mail or making payments always ask for your confirmation first.
Workflow & Instructions
Understand the function contract and side effects.
List happy-path, boundary and failure cases.
Write isolated tests using the project's existing framework.
Mock external dependencies deterministically.
Verify all tests pass and note uncovered branches.
Actions like sending mail or making payments always ask for your confirmation first.
SKILL.md
# Unit Test Generator
> Generate focused unit tests covering happy paths, boundaries and errors.
## Input/Output Contract
- **Input:** Function source, framework, existing test conventions
- **Output:** Test file, case list, coverage notes
## Workflow & Instructions
2. Understand the function contract and side effects.
4. List happy-path, boundary and failure cases.
6. Write isolated tests using the project's existing framework.
8. Mock external dependencies deterministically.
10. Verify all tests pass and note uncovered branches.
## Starter Prompt
```text
Write unit tests for this function covering edge cases.
```
Starter Prompt
Write unit tests for this function covering edge cases.
FAQ
Is this a real capability in Clavue Bot?
Yes. This page is generated from the product's built-in catalog; names, inputs/outputs and steps correspond to real scenarios, skills, MCP tools or digital employees.
Do I need to configure extra tools or connectors?
Entries marked 'Ready to use' need no extra tools. 'Needs tools' entries list the required connectors — just authorize them on first run.
Will it send emails or make payments without confirmation?
No. Outbound actions such as sending mail, making payments or submitting forms pause for your confirmation and continue only after you approve.