Skip to content

Nov 01: Unit Testing Coverage

Learning Objectives

After today's class, you should be able to:

  • Explain the purpose of measuring code coverage.
  • Run pytest with code coverage in Thonny or VSCode.
  • Interpret coverage results (percents, missing lines).

Reminders

PA2 deadlines have been extended:

Today's Lab

Run Tests with Coverage

  • Submit to Gradescope for participation points
  • You may work on PA's after completing the lab
  • You may work together on the lab, but not PA's