Claude prompt
Generate Test Suite
Generates a comprehensive test suite covering happy paths, edge cases, error scenarios, and boundary conditions.
Write a comprehensive test suite for the following code using {{test_framework}}. Cover these categories: 1. HAPPY PATH — Normal operation with valid inputs 2. EDGE CASES — Empty inputs, single items, max values, unicode, special chars 3. ERROR SCENARIOS — Invalid inputs, network failures, timeouts, null/undefined 4. BOUNDARY CONDITIONS — Off-by-one, integer overflow, empty arrays, max string length 5. INTEGRATION — How this code interacts with its dependencies For each test: - Use descriptive test names that explain the expected behavior - Follow AAA pattern (Arrange, Act, Assert) - One assertion per test where practical Code to test: ```{{language}} {{code}} ``` Additional context: {{context}}
Fill in: {{test_framework}}, {{language}}, {{code}}, {{context}}. In Loopy you fill these in a form and copy the finished prompt in one click.

