
Write unit tests
Add unit tests to your code, grouped into normal paths, edge cases and errors — then actually run them and get a pass/fail and coverage report.
Prompt
Write unit tests for my uploaded Python pricing functions using pytest, grouped into normal input, edge cases and errors, and covering an empty cart, a total exactly at the coupon threshold and negative prices. Run them and tell me what passed and the coverage. If you find a bug in the code itself, point it out instead of changing the assertion.
- Source
- Ofox
How to use
- 1
Tap “Make one like this”
Ofox Chat opens with this request already written. Sign in first if you haven’t.
- 2
Make it yours
Edit the highlighted parts of the prompt to swap in your own details.
- 3
Send and create
Send it and Ofox Chat writes and runs the code, then you can preview or download the result. Keep chatting to change it.
FAQ
What do I get?
A web page you can open right away. Ofox Chat writes the code and runs it in a sandbox; you can preview the result in the chat and download the code files.
Do I need to know how to code?
No. Describe what you want in plain words and upload any files it should work on — Ofox Chat writes and runs the code.
Can I edit the prompt?
Yes. The prompt goes into the Ofox Chat input box — swap in your own topic, add requirements or drop what you don’t need before sending.
Can I copy and use the prompt directly?
Yes. Tap “Copy” on the prompt card to get the plain text — it works in other AI coding tools too.
More like this
More Dev tools prompts
Regex extractionCode · Dev tools
Repo health checkCode · Dev tools
Write & optimize SQLCode · Dev tools
Product landing pageCode · Web pages
Fashion brand storeCode · Web pages
Food gift shopCode · Web pages
Digital goods marketplaceCode · Web pages
Subscription box siteCode · Web pages
SaaS pricing & checkoutCode · Web pages
Web mini gameCode · Game
Have an idea of your own? Start creating
Describe the image you want in one sentence, and Ofox Chat creates it from scratch.