← Prompt Library / Engineering
Generate thorough unit tests for a function.
Write unit tests for the function below using {{framework}}. Cover the happy path, edge cases, boundary values, and error conditions. Use clear test names that describe the scenario. Note any cases that are hard to test and why.
```
{{code}}
```
Fields like {{ this }} are placeholders — replace them with your own details, or let Aria ask you for them.
This prompt runs with Aria connected to your email, files, CRM and 40+ other services — and you can schedule it to run automatically.
Start Free WeekReview a diff for correctness, security, and readability issues.
Get a plain-English walkthrough of unfamiliar code.
Diagnose an error systematically: likely causes ranked with reasoning, the cheapest test for each, a...
Build a regular expression from a plain-English requirement — explained token by token, tested again...
Turn a plain-English data question into a working SQL query — with the assumptions stated, a readabl...
Write a clean conventional commit message from a diff.