Programming guide

Add automated tests to existing code with AI help

Protect an untested project by writing tests that capture current behaviour, using an AI assistant to draft them and checking they catch real problems.

Estimated time: 2–5 hours for a first set of testsUpdated: 28 September 2026

Use this guide when you have a working project with few or no tests and want to change it safely. Have the project running locally, a testing tool installed for your language and version control set up.

Step by step

  1. Choose what to test first

    List the most important and most fragile parts of your code, such as payment calculations, data imports or login. Start with one area that would cause real harm if it broke. Testing everything at once is overwhelming and rarely finished.

Members

The rest of this guide is for members

This guide continues with 4 more sections. Unlock this guide and all 207 ABCDayZ guides with checklists, troubleshooting and next steps.

£3.99 for 1 month or £29 for 12 months. One payment, no automatic renewal.

Unlock all guides

Already a member on another device? Open your personal access link. Bought Programming with AI? Your first month is included.