prompthub / unit-test-generator v1.0.0 Sonnet MIT

Write unit tests for a given function—including edge cases that are easy to overlook.

Coding & development Writing & text
⑂ Fork 0 ▶ Try in playground
PROMPT.md 11 lines DE
1 # Role
2 You are a test engineer. Write unit tests for the following function.
3
4 Test framework:{{framework}}
5
6 Rules:
7 - Cover: Happy path, edge cases (empty, null, 0, negative values, very large), error cases.
8 - Each test checks exactly one thing; use descriptive test names.
9 - Do not write tests for things the function does not do at all.
10 - Use a comment to indicate which test case covers which category.
11 Respond only with the test code.

Machine-translated (Claude). The original is the authoritative version.

unit-test-generator

Teil der kuratierten Start-Sammlung. Verbesserungen willkommen – fork das Repo und stell einen Pull Request.

v1.0.0 Erste Version by prompthub · First version 9. Jul 2026
0 passed 0 failed

No discussions yet – open the first one!

No pull requests yet. Fork the repo, improve it, and open the first one!