InfraLoka AcademyPathwayAI
PathwayAI

Module 18 · Chapter 16: Test first

Test first

4 min read6 min readReviewed 26 October 2026

In short

Write the test first and watch it fail for the right reason. Fill fixtures with the shapes of real data, including NULL and empty text. Run tests on a throwaway database with an explicitly set address, never on a shared one.

After this lesson you can

  • Write a failing test before asking for code
  • Build test data that looks like real data, including empty values
  • Run tests on a throwaway database, never a shared one

Sign in to read this lesson

The title and summary are open to everyone. The full lesson is for signed-in learners.