Prompt #83

Back to prompts
Test Generation TDD
Code Β· ollama/qwen2.5-coder:7b
5/5
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.