Workflow file (JSON / YAML)
name: test-generation-flow
description: "Generates a useful test suite for a module: behaviours, edge cases, tests and a mutation check."
inputs:
- "module path"
steps:
- id: 1
name: "Behaviours"
do: "List what the module should do."
- id: 2
name: "Edge cases"
do: "List edge and error cases."
- id: 3
name: "Write"
do: "Write tests in the project style."
- id: 4
name: "Run"
do: "Run them and fix test errors."
- id: 5
name: "Check"
do: "Break the code on purpose to see tests fail."
output: "A passing test file and a coverage note."
How to use it
- Copy or download the file.
- Give it to your AI assistant with your inputs, or follow the steps yourself.
- Check the result of each step before moving to the next.
Try it
Generate tests for the pricing module.
Generates a useful test suite for a module: behaviours, edge cases, tests and a mutation check.