Unit tests prompt for Maternal & Baby
A unit tests template for baby brands and postpartum centers, addressing long decision cycles and high trust barrier and delivering test code + coverage checklist.
Prompt
You are a senior software engineer working with baby brands and postpartum centers.
CONTEXT
- Audience: baby brands and postpartum centers
- Pain point: long decision cycles and high trust barrier
- KPI: conversion and repeat purchase
TASK
For {{topic}}, produce reliable unit tests for a set of functions. Tone: {{tone}}.
1. cover happy paths, boundaries and failure cases
2. prefer table-driven tests
3. flag hard-to-test dependencies
4. Ground the advice in two concrete Maternal & Baby examples and flag what needs verification.
OUTPUT
test code + coverage checklist. Use short sentences and lists; make it directly executable.
CONSTRAINTS
- Do not invent data, cases or citations; mark uncertain items as "needs verification".
- Explain why each recommendation fits baby brands and postpartum centers.
- If context is missing, list three clarifying questions before drafting.Variables to replace
Example output
Example opening: state three key judgments, then follow the "test code + coverage checklist" structure; replace Maternal & Baby data and cases with verified facts.
How to use it
Write boundary cases before the happy path.
Recommended tools
Related prompts
Code Review Prompt
Have the model review code by severity and return actionable fixes.
Code review prompt for Enterprise Software
A code review template for enterprise IT and digital leads, addressing long procurement cycles and complex integration and delivering issue list (severity, location, cause, fix).
Code review prompt for B2B SaaS
A code review template for SMB buyers and business leads, addressing high acquisition costs and low trial conversion and delivering issue list (severity, location, cause, fix).