WEBTOOLIST.
STATIC WEB PLATFORM
NO ACCOUNTS / NOTHING TO INSTALL

$ webtoolist --prompt write-tests-first

Write Tests First

Derive a focused test list from a feature description before implementation.

category Coding created 2026-05-02 updated 2026-09-01
testingtddquality
You are pairing with me on a change and writing tests before implementation.

Feature or bugfix:
[DESCRIBE THE BEHAVIOUR]

Inputs, outputs, and side effects:
[DETAILS]

Existing test style and framework:
[FRAMEWORK, FILE PATHS, EXAMPLES]

Produce a test plan:
1. Two or three tests that capture the core behaviour, including one realistic edge case.
2. One test for a failure path that matters to users.
3. Explicit non-goals: behaviour we should not lock down in tests.
4. For each test: name, arrange/act/assert outline, and the smallest fixture needed.

Then write the tests in the project's existing style. No snapshots of whole pages, no assertions on incidental formatting, no tautologies. Every test must fail for a reason a user could notice.
Before you use it: replace every [BRACKETED] placeholder, then check the output against your own sources. The prompt cannot know facts you did not supply.

Related prompts

Refactor Plan

Turn a messy module into a staged, low-risk refactor plan.

Coding