Lecture 6 — Unit and Functional Testing (3h)#
Objectives
Write unit tests in gtest (C++) and pytest (Python)
Understand unit vs integration vs functional tests
Use test-driven development basics (red-green-refactor)
Content summary
Introduce gtest and pytest examples. Hands-on: write tests that expose bugs, fix code, and re-run test suites. Discuss test organization and basic fixtures.