Skip to main content
Module 3 of 4

Your first tests, with AI as a colleague

Why: AI writes tests faster than you ever will. Your value is deciding what the tests must prove, and checking that they do.

You design test cases before any code exists, then let AI write a unit test, an API test and a UI test, and judge each one by breaking the code on purpose.

Lessons

  1. Test cases before code (45 min) - beginner
  2. A unit test: generate, then judge (60 min) - beginner
  3. An API test in code (60 min) - beginner
  4. A UI test with Playwright (60 min) - beginner