Prompt #83
Back to promptsTest Generation TDD
- Variables
- feature, framework
- Tags
- tdd,testing,unit-tests
- Source
- research-2026-05-01
- Use count
- 0
- Created
- 2026-05-01T18:11:52.162090+00:00
- Updated
- 2026-05-01T18:11:52.162090+00:00
Content
Generate test cases following Test-Driven Development principles for:
Feature: {{feature}}
Language/Framework: {{framework}}
Requirements:
- Write failing tests FIRST (red phase)
- Cover: happy path, edge cases, boundary values, error scenarios
- Use descriptive test names (should_<behavior>_when_<condition>)
- Include setup/teardown fixtures
- Mock external dependencies explicitly
- Aim for β₯80% branch coverage
Output format: complete test file ready to run.