---
description: Generate comprehensive tests
argument-hint: "<file-or-function>"
---
# Generate comprehensive tests**Target**:
$ARGUMENTS
1. **Unit** - Happy path, edge cases, error cases, regression tests
1. **Mutation** - Ensure that unit test coverage is actually meaningful
1. **Property** - Business logic, algorithms and pure functions.
1. **Integration/End to End(e2e)** - Whole system coverage and module
interactions.
1. **Snapshot** - Use snapshot testing for complex output like file and data
formats:
HTML,JSON,XML,REST,HTTP,binary data,TUI,text,...
Aim for 100% coverage on critical paths.
If changes are needed to dependencies or build system, report to human.