Help me create a testing strategy and write better tests.
Project: [WHAT I'M BUILDING]
Language: [JAVASCRIPT / PYTHON / JAVA / OTHER]
Current testing: [NONE / SOME UNIT TESTS / GOOD COVERAGE]
Framework: [JEST / PYTEST / VITEST / CYPRESS / OTHER]
Provide:
1. **Testing Pyramid**: How many unit, integration, and e2e tests I need
2. **What to Test**: Which functions and features are most critical to test
3. **Unit Test Patterns**: Templates for common unit test scenarios
4. **Integration Tests**: Testing component interactions and API endpoints
5. **Mocking Strategy**: When and how to mock dependencies
6. **Test Data**: Managing test fixtures and factories
7. **Edge Cases**: How to identify and test edge cases
8. **TDD Workflow**: How to use test-driven development practically
9. **Coverage Goals**: Realistic coverage targets and what they mean
10. **CI Integration**: Running tests automatically on every push
Help me create a testing strategy and write better tests.
Project: [WHAT I'M BUILDING]
Language: [JAVASCRIPT / PYTHON / JAVA / OTHER]
Current testing: [NONE / SOME UNIT TESTS / GOOD COVERAGE]
Framework: [JEST / PYTEST / VITEST / CYPRESS / OTHER]
Provide:
1. **Testing Pyramid**: How many unit, integration, and e2e tests I need
2. **What to Test**: Which functions and features are most critical to test
3. **Unit Test Patterns**: Templates for common unit test scenarios
4. **Integration Tests**: Testing component interactions and API endpoints
5. **Mocking Strategy**: When and how to mock dependencies
6. **Test Data**: Managing test fixtures and factories
7. **Edge Cases**: How to identify and test edge cases
8. **TDD Workflow**: How to use test-driven development practically
9. **Coverage Goals**: Realistic coverage targets and what they mean
10. **CI Integration**: Running tests automatically on every push
How to use this prompt
Copy the prompt above and paste it into ChatGPT, Claude, Gemini, or any AI assistant. Replace the bracketed placeholders with your specific details.
Leave a Review
Tried this prompt? Let us know how it worked — your reviews help other users find the best prompts.