← Prompt Library / Engineering

Engineering

Write Unit Tests

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.

testing code quality

Run this prompt with your real data

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 Week

More Engineering prompts

Pragmatic Code Reviewer

Review a diff for correctness, security, and readability issues.

Explain This Code

Get a plain-English walkthrough of unfamiliar code.

Debug Assistant

Diagnose an error systematically: likely causes ranked with reasoning, the cheapest test for each, a...

Regex Builder

Build a regular expression from a plain-English requirement — explained token by token, tested again...

SQL From a Question

Turn a plain-English data question into a working SQL query — with the assumptions stated, a readabl...

Commit Message Writer

Write a clean conventional commit message from a diff.