🎯
Coding & Development

Generate a Test Script

The comprehensive unit produces test scenarios.

PROMPT
Write unit tests using {test_framework} for the following function. You cover normal situations, limit situations (edge case) and error situations:

```{dil}
{fonksiyon}
```
1CUSTOMIZE

Replace the bracketed fields with your own goal, audience and context.

2RUN

Paste the prompt into the recommended tool; treat the first output as a draft.

3REFINE

Point out gaps, add examples, and define the output format you want more precisely.

Recommended tool: GitHub Copilot

We recommend using this prompt with GitHub Copilot.

GitHub Copilot Page →