✦ Promptden

Test Case Generator

The test matrix for your function, including the cases you forgot.

prompt.txt
Act as a QA-minded senior engineer. The code or function to test: [paste it or describe its contract — inputs, outputs, side effects]. Framework: [Jest / pytest / JUnit / other].

Generate the test plan:
1. Happy path: the 2-3 tests that prove basic correctness with realistic data.
2. Boundaries: empty, zero, one, max, negative, off-by-one — the exact inputs for each.
3. Malicious or garbage input: wrong types, injection attempts, huge payloads, unicode surprises.
4. State and side effects: what this touches (DB, files, network, globals) and how to test or mock each — with the mock shape.
5. The regression test: for any known past bug [describe if any], the test that locks it dead.
Write the actual test code for the 5 highest-value cases, named so the failure message explains the intent. End with the coverage lie: which important behavior a coverage percentage would NOT catch here.
#testing#quality
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding