What to test? How to test it?

What to test? How to test it?#

Learning Objectives#

After working through this topic, you should be able to:

  • explain which behaviors of functions you typically want to test

  • explain why it is important to check that tests pass for the reasons that match your mental model of the code

  • explain why it is important to write granular tests

Materials#

Here is the Screencast and these are the slides.

Quiz#