Tag

Testing Prompts

Thorough tests catch the bugs manual checking misses. These prompts help you generate unit tests that cover happy paths, edge cases, and failure modes for any function.

12 prompts · page 2 of 2

Coding

Comprehensive Code Review Checklist

Paste code along with its purpose, stack, module, and constraints to get a full-spectrum review covering correctness, security, performance, maintainability, error handling, accessibility, and test coverage in one pass. Returns a severity-ranked issues table, the top 3 priorities, positive observations, and specific tests to add — built to run right before merging a PR or handing code to a peer reviewer.

Coding

Test Case Generator

Generates a full test suite for a pasted code block, matched to your stated framework, test type, and existing test style so the output fits straight into the project. Delivers a test plan table, happy-path and edge-case tests, error-case tests, mock setup for external dependencies, realistic test data, and a list of remaining coverage gaps — plus the runnable test code itself.

Coding

Write unit tests for a function

Takes a single function plus its test framework (or "unknown" if you're not sure) and writes a practical test suite covering the main happy path, boundary cases, invalid inputs, and expected failure modes. It matches the project's existing test style when one is visible in the pasted context, and states any assumptions it made before showing the actual test code.