Unit Test Plan Prompt
Plan behavior-focused tests around meaningful failures and edge cases.
What this prompt does
Behavior first
Identify observable requirements and important boundaries before selecting test cases.
Meaningful coverage
Include normal behavior, useful edge cases and failure handling tied to real consequences.
Small first set
Specify scenario, input, expected result, level and purpose while marking missing fixtures.
What to provide & what you get
- Input
- The function or module, expected behavior and failure risks
- Expected output
- A test plan covering meaningful behavior, boundaries and failure cases
How to use
- Provide the requirements, implementation context, existing tests and the failures that would matter.
- Run the prompt and review the proposed cases and assumptions.
- Choose the smallest useful set, prepare its fixtures and implement and run the tests separately.
Check the result: The output is a test plan. It does not prove that the implementation passes, and cases should not merely mirror private code details.
Copy. Paste. Run.
v1.1Edit the inputs below, then copy into your AI tool with the requested source material.
Before you start
- Paste into an AI tool that supports the requested text, files or images.
- Provide the bracketed inputs or attach the requested source material.
A quick example
A parser should preserve quoted commas and reject unmatched quotes.
A small plan covering valid quoted data, escaped quotes and a clear rejection case.



