Skip to content
Search prompts, tools, agents…

Test generation flow

Generates a useful test suite for a module: behaviours, edge cases, tests and a mutation check.

Free Intermediate 0 views 0 copies 0 downloads
Download file

Workflow file (JSON / YAML)

test-generation-flow.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

  1. Copy or download the file.
  2. Give it to your AI assistant with your inputs, or follow the steps yourself.
  3. 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.

Join the conversation

Your email address will not be published. Required fields are marked *