Last updated: May 31, 26 01:31 UTC | Permalink

3 - When Have I Written Enough Tests?

Learning Objectives:

After this lecture, you will be able to:

  • Explain how TypeScript types and documented preconditions influence what tests you need to write
  • Explain the difference between the any and unknown types in TypeScript
  • Understand the structure of a simple Express server incorporating Zod validation
  • Explain what code coverage is, and how different measures differ, including statements, branches, functions, and lines
  • Explain the benefits of mutation testing

Important Dates:

Lecture Slides:

Activities

Tutorials

Resources


© 2026 Adeel Bhutta. Released under the CC BY-SA license