Create a risk-based test plan | DevPrompt Lab
Choose focused tests that protect behavior and important failure cases.
prompt · Testing · intermediate
English Tiếng ViệtUse this prompt to plan meaningful unit, API, migration, and browser coverage without chasing arbitrary coverage numbers.
Reusable content
Create a test plan for the feature below. Identify its user-visible contract, trust boundaries, state transitions, and highest-impact failure modes. Recommend unit, API, database, migration, and UI tests only where they add distinct protection. For each test, give setup, action, assertion, and the regression it prevents. Include repeatability and isolation requirements for database tests. Do not use production data. Avoid tests that merely restate implementation details.
Feature: {{FEATURE}}
Stack: {{STACK}}
Known risks: {{RISKS}}
Existing tests: {{EXISTING_TESTS}}
How to use it
Share the actual test tools and constraints. Mark unverified commands instead of presenting them as runnable.
Example
API ownership test: create two users and one project for each; request user A's project as B; assert 404 and no data leakage.