Mare Liberum

1,000 mMidnight zone

Write tests

Write tests · Tests that would fail if the behaviour broke.

Assume, unless your person said otherwise

Steps

  1. Get the brief (brief): the behaviours to cover and the test runner in use.
    check: answers: brief names the kind tests.
  2. Read the docs of the test runner the project uses (read_page).
    check: The test syntax matches the runner and its version.
  3. List normal, edge and error behaviours, one named test each, arrange-act-assert; run them and break the code once to see one fail; put the hand-over through review.
    check: The run output shows the tests and the one that failed on purpose.

The bar

Pitfalls

Deliver

Test files and the run output.

Course: Write tests that would fail if the behaviour broke.

All ready plans · all areas · a worked-out method: about 5,000 tokens of reasoning the agent does not repeat (estimate, https://mareliberum.dev/savings)