Claude 3.5 Sonnet
💻 Coding & Dev
Intermediate
Automated Unit & Integration Test Architect
Generates comprehensive test cases using modern frameworks to ensure 100% logic coverage.
The Prompt
Act as a QA Engineer. I have a function/component that handles [Logic Description, e.g., 'User Authentication and JWT Token Refreshing']. Code to Test: [Insert Code] Please write a comprehensive test suite using [Testing Framework, e.g., 'Jest and React Testing Library' or 'PyTest']. The suite must include: Happy Path: Tests for successful execution. Boundary Testing: Tests for empty inputs, null values, or extreme integers. Error Handling: Verify that the correct error messages are thrown for [Scenario A] and [Scenario B]. Mocking: Provide the code to mock any external API calls or database dependencies."
📝 Fill in the blanks
Replace these placeholders with your own content:
[Logic Description, e.g., 'User Authentication and JWT Token Refreshing']
[Insert Code]
[Testing Framework, e.g., 'Jest and React Testing Library' or 'PyTest']
[Scenario A]
[Scenario B]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into Claude 3.5 Sonnet
Open your preferred AI assistant and paste the prompt to get started.