Testing

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

If you remember back to the proposed AI-assisted development process from the previous lesson, you might notice something missing:

  1. Develop, and refine a spec with a chat-based LLM.
  2. Review and approve the spec, checking high-risk areas carefully.
  3. Ask an AI agent to write an implementation plan.
  4. Review the plan, if necessary refine it, or cut it down.
  5. Ask the AI agent to implement the spec according to the agreed plan.
  6. Debug generated code.
  7. Perform a code review, and iterate as required.

Nowhere in this plan does it mention writing any tests.

The Importance of Tests in AI-assisted Coding

Automated tests in software serve several purposes:

Testing Strategies

There are several different approaches to writing tests in an AI-assisted world:

See forum comments
Download course materials from Github
Previous: Fixing the Weather API Next: Building a Test Suite