Last updated: Mar 25, 26 00:28 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


© 2025-26 Adeel Bhutta, Robert Simmons and Mitch Wand. Released under the CC BY-SA license