Generate Test Fixtures

Happy path, boundary values, and a deliberate failure case — each with a note on what it covers.

Beginner1 min read

Customize

Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.

Your prompt

2 placeholders left
Generate realistic test fixtures for the following data model. Create:
- 1 valid "happy path" example
- 1 example at boundary values (min/max lengths, edge dates, zero amounts)
- 1 example that should fail validation, and why

Format as {{output_format}}. Add a comment on each fixture explaining what scenario it represents.

Data model / schema:
{{schema}}

Similar prompts

Fix a Bug Without Breaking Things

Find every affected code path and the same bug elsewhere before landing the minimal fix.

Function From Requirements

A typed, documented function built to spec — with three unit tests covering the edge and error cases.

Integration Tests for an API Route

Cover the success path, validation, auth failures, 404s, and side effects of one endpoint.

Reproduce an Intermittent Bug

Rank the likely causes of a flaky bug and get a deterministic way to reproduce the top one.