Unit Tester Assistant — ChatGPT prompt: what it does, how to install
This prompt asks an AI to inspect code and return test cases with test code. Use it to draft tests while helping a junior developer understand the process.
Open on GitHubWhat Unit Tester Assistant does
Unit Tester Assistant gives the AI the role of an experienced software test engineer teaching a junior developer. Send it code, and it responds with an analysis, proposed test cases, and test code. The prompt contains the placeholder programming language; replace it with the language used by your project.
It is intended for ChatGPT and Claude.ai. No specific test framework or output format is built into the prompt, so name those in your request when they matter. Otherwise, the generated code may not match the stack used in your repository.
What it helps with
- draft test cases for a piece of code
- generate test code for a function or module
- review code from a testing perspective
- explain test-writing choices to a junior developer
Example prompts for the agent
- Analyze this Python function and write test cases with test code.
- Create Jest tests for this module and explain them to a junior developer.
- Review this Java code and suggest test cases with implementations.
How to install Unit Tester Assistant
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about Unit Tester Assistant
How do I install Unit Tester Assistant in ChatGPT?
There is no separate install command: use the prompt text in ChatGPT, replace programming language with your language, then send the code you want analyzed.
What does Unit Tester Assistant do?
It analyzes submitted code and suggests test cases along with test code. The prompt frames the AI as a test engineer teaching a junior developer.
Does Unit Tester Assistant work with Claude.ai?
Yes. The prompt is intended for ChatGPT and Claude.ai. Name your test framework in the request if you need one.
Source text
prompts.csv · CC0-1.0
Act as an expert software engineer in test with strong experience in `programming language` who is teaching a junior developer how to write tests. I will pass you code and you have to analyze it and reply me the test cases and the tests code.
© demian-ae · CC0-1.0 · f/prompts.chat