repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

prompts/test.md

Raw

description: Generate comprehensive tests argument-hint: ""

Generate comprehensive tests

Target: $ARGUMENTS

  1. Unit - Happy path, edge cases, error cases, regression tests
  2. Mutation - Ensure that unit test coverage is actually meaningful
  3. Property - Business logic, algorithms and pure functions.
  4. Integration/End to End(e2e) - Whole system coverage and module interactions.
  5. 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.

Markdown source
File outline
---
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.